aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-23 16:51:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-23 16:51:42 +1200
commitea99f440c0655d691f7485212219a90156e241d7 (patch)
tree04fa0c38d1413c291ebfc800bdf2c2ba48b06a8e
parent86eb3c2f7296c791914d058ac879bb28511bc78e (diff)
downloaddotfiles-ea99f440c0655d691f7485212219a90156e241d7.tar.gz
Add autocmds to always pop open quickfix/loclist
-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