Explorar o código

add more easygrep options back into vimrc

weiyi %!s(int64=12) %!d(string=hai) anos
pai
achega
fa1359dd90
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  1. 14 0
      vim/vimrc

+ 14 - 0
vim/vimrc

@@ -301,6 +301,20 @@ let g:SuperTabDefaultCompletionType = 'context'
 """"""""" Vim Markdown
 let g:vim_markdown_folding_disabled = 1
 
+""""""""" EasyGrep
+let g:EasyGrepRecursive = 1
+let g:EasyGrepHighlightQfMatches = 1
+let g:EasyGrepReplaceWindowMode = 2  " Edit and save in place (no new tabs/splits)
+" use ack for grepping if available
+if executable('ack-grep')
+  set grepprg=ack-grep\ --with-filename\ --nocolor\ --nogroup
+elseif executable('ack')
+  set grepprg=ack\ --with-filename\ --nocolor\ --nogroup
+endif
+set shellpipe=&>  " don't display ack/grep terminal output. NOTE: not reliable
+                  " https://github.com/mileszs/ack.vim/issues/18
+
+
 
 """"""""" Remove completion omni in the event that it is too slow
 "let g:neocomplete#sources#omni#input_patterns = {}