Ver Fonte

make fugitive's Glog open quickfix window automatically

Weiyi Lou há 13 anos atrás
pai
commit
9d8d423f8e
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      vim/vimrc

+ 5 - 1
vim/vimrc

@@ -63,9 +63,13 @@ if has("autocmd")
 
   " Source the vimrc file after saving it
   autocmd bufwritepost .vimrc source $MYVIMRC
-  autocmd bufwritepost .vimrc call Pl#Load()
+
   " Reload Powerline colours after source
   " https://github.com/Lokaltog/vim-powerline/issues/28
+  autocmd bufwritepost .vimrc call Pl#Load()
+
+  " Open quickfix window after any grep invocation (Glog and Ggrep)
+  autocmd QuickFixCmdPost *grep* cwindow
 
   " if the last window is NERDTree, then close Vim
   "autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif