소스 검색

make fugitive's Glog open quickfix window automatically

Weiyi Lou 13 년 전
부모
커밋
9d8d423f8e
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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