فهرست منبع

add more easygrep options back into vimrc

weiyi 12 سال پیش
والد
کامیت
fa1359dd90
1فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  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 = {}