aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 2637170b..ab0165c3 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -298,5 +298,14 @@ nnoremap <Bslash><Delete> :<C-U>bdelete<CR>
" \INS edits a new buffer
nnoremap <Bslash><Insert> :<C-U>enew<CR>
+" Always pop open quickfix and location lists when changed
+if exists('##QuickfixCmdPost')
+ augroup vimrc_quickfix
+ autocmd!
+ autocmd QuickfixCmdPost [^l]* cwindow
+ autocmd QuickfixCmdPost l* lwindow
+ augroup END
+endif
+
" Source any .vim files from ~/.vim/config
runtime! config/*.vim