Sfoglia il codice sorgente

update EasyGrep submodule

Weiyi Lou 12 anni fa
parent
commit
d81ebc70e6
2 ha cambiato i file con 7 aggiunte e 5 eliminazioni
  1. 1 1
      vim/bundle/easygrep
  2. 6 4
      vim/vimrc

+ 1 - 1
vim/bundle/easygrep

@@ -1 +1 @@
-Subproject commit 6c0fc0522aa7ae78d5e8bb01b02c5ebbe3222d1a
+Subproject commit bbe00bff6411742488e09cf9ccb25ae63b5e833f

+ 6 - 4
vim/vimrc

@@ -312,6 +312,8 @@ let g:tagbar_autoclose = 1 " close sidebar after we go to selection
 
 """"""""" EasyGrep
 let g:EasyGrepCommand = 1 " don't use the built in vimgrep, which is slow
+" Caveat about using ack: cannot search unsaved changes in buffer, unlike vimgrep
+let g:EasyGrepJumpToMatch = 0
 let g:EasyGrepHighlightQfMatches = 1
 
 
@@ -391,11 +393,11 @@ endfunction
 
 function! MapQfPrevNext()
   " jump to the next/previous instance in Quickfix window
-  exec "nmap <silent> [ :cprev<CR>"
-  exec "nmap <silent> ] :cnext<CR>"
+  exec "nmap <silent> <leader>[ :cprev<CR>"
+  exec "nmap <silent> <leader>] :cnext<CR>"
 endfunction
 
 function! UnmapQfPrefNext()
-  exec "nunmap ["
-  exec "nunmap ]"
+  exec "nunmap <leader>["
+  exec "nunmap <leader>]"
 endfunction