From ff79a0ab85b51032c2856b2a751e1fa3b1ee93b1 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Fri, 10 Jan 2014 10:34:24 +0100 Subject: [PATCH] Disable vim-gitgutter during :vimgrep. --- plugin/gitgutter.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index d242f39..c09797c 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -290,6 +290,10 @@ augroup gitgutter endif autocmd ColorScheme * call highlight#define_sign_column_highlight() | call highlight#define_highlights() + + " Disable during :vimgrep + autocmd QuickFixCmdPre *vimgrep* let g:gitgutter_enabled = 0 + autocmd QuickFixCmdPost *vimgrep* let g:gitgutter_enabled = 1 augroup END " }}}