diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -96,24 +96,15 @@ let s:filename=expand('') " Key maps {{{ -" F1 - Unite to switch buffers nmap :Unite buffer -" S-F1 - Unite to switch windows or tabs -nmap :Unite -quick-match -short-source-names window tab:no-current +nmap :Unite -quick-match -short-source-names window tab:no-current nmap :Unite session nmap :VimFilerExplorer +nmap :Unite -start-insert file_rec/async:! map :noh nmap :GundoToggle nmap :TagbarToggle -" This is supposed to get a CtrlP workalike with fuzzy match but i need to fix -" ignores and always chdir to a good place -if s:on_windows == 1 - nmap :Unite -start-insert file_rec:! -else - nmap :Unite -start-insert file_rec/async:! -endif - " stop opening help by mistake imap @@ -446,7 +437,6 @@ let g:tagbar_type_elixir = { ">> Unite " call unite#filters#matcher_default#use(['matcher_fuzzy']) call unite#filters#sorter_default#use(['sorter_rank']) -" let g:unite_source_history_yank_enable = 1 call unite#custom#profile('default', 'context', {'winheight': 10}) @@ -454,8 +444,11 @@ if executable('ag') let g:unite_source_grep_command = 'ag' let g:unite_source_grep_default_opts = '--nogroup --nocolor --column' let g:unite_source_grep_recursive_opt = '' + + let g:unite_source_rec_async_command = ['ag', '-f', '--nocolor', '--nogroup', '-g', ''] endif + ">> vimfiler let g:vimfiler_as_default_explorer = 1