aboutsummaryrefslogtreecommitdiff
path: root/plugin/quickfix_auto_open.vim
blob: c9473c464f989a87a79f7b1450f3c8160bcb2bd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"
" quickfix_auto_open.vim: Always pop open the quickfix list or location list
" when they're changed.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
if exists('loaded_quickfix_auto_open') || &compatible || v:version < 700
  finish
endif
let loaded_quickfix_auto_open = 1

" Set up hooks for events that may yield a populated quickfix or location list
augroup quickfix_auto_open
  autocmd!
  autocmd QuickFixCmdPost *
        \ call quickfix_auto_open#(expand('<amatch>'))
  autocmd VimEnter *
        \ cwindow
augroup END