path = vim/bundle/vim-dispatch
url = https://github.com/tpope/vim-dispatch.git
ignore = untracked
+[submodule "vim/bundle/unite.vim"]
+ path = vim/bundle/unite.vim
+ url = https://github.com/Shougo/unite.vim.git
+ ignore = untracked
"imap <leader>dD <C-R>=strftime('%Y-%m-%d')<CR>
"nmap <leader>dt "=strftime('%H:%M:%S')<CR>p
"imap <leader>dt <C-R>=strftime('%H:%M:%S')<CR>
+
+" Unite
+let g:unite_source_history_yank_enable = 1
+"call unite#filters#matcher_default#use(['matcher_fuzzy'])
+nnoremap <leader>uf :<C-u>Unite -no-split -start-insert -buffer-name=files file_rec<cr>
+nnoremap <leader>uy :<C-u>Unite -no-split -buffer-name=yank history/yank<cr>
+nnoremap <leader>ub :<C-u>Unite -no-split -start-insert -buffer-name=buffer buffer<cr>
+
+" Custom mappings for the unite buffer
+autocmd FileType unite call s:unite_settings()
+function! s:unite_settings()
+ setlocal noswapfile undolevels=-1
+ " Play nice with supertab
+ let b:SuperTabDisabled=1
+ " Enable navigation with control-j and control-k in insert mode
+ imap <buffer> <C-n> <Plug>(unite_select_next_line)
+ imap <buffer> <C-p> <Plug>(unite_select_previous_line)
+ nmap <buffer> <ESC> <Plug>(unite_exit)
+endfunction