]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
awesome: fix battery_widget
[dotfiles.git] / vim / vimrc
index dd4b7b7cec69f1da2024d23fb0f2efb1e33ed6b3..3905add6679e51019a9de68c88649a77f46c7e17 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -513,7 +513,6 @@ let g:UltiSnipsListSnippets="<c-e>"
 " unite {{{2
 call unite#filters#matcher_default#use(['matcher_fuzzy'])
 call unite#custom#profile('default', 'context', {
-            \ 'start_insert': 1,
             \ 'winheight': 20,
             \ 'direction': 'botright'
             \ })
@@ -521,6 +520,8 @@ call unite#custom#profile('default', 'context', {
 " seems not respected
 let g:unite_source_grep_max_candidates = 2000
 if executable('ag')
+    " Use ag in unite rec source
+    let g:unite_source_rec_async_command = 'ag --follow --nocolor --nogroup --hidden -g ""'
     " Use ag in unite grep source.
     let g:unite_source_grep_command = 'ag'
     let g:unite_source_grep_default_opts = '--smart-case -w --vimgrep --hidden --ignore ''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr'''
@@ -529,7 +530,9 @@ end
 
 nnoremap [unite] <Nop>
 nmap <leader>u [unite]
-nnoremap <silent> [unite]f :<C-u>Unite buffer file_rec<CR>
+nnoremap <silent> [unite]f :<C-u>Unite -start-insert file_rec/async<CR>
+call unite#custom#default_action('buffer', 'goto')
+nnoremap <silent> [unite]b :<C-u>Unite buffer<CR>
 nnoremap <silent> [unite]a :<C-u>Unite grep -input=\12\17<CR>
 
 " yankring {{{2