aboutsummaryrefslogtreecommitdiff
path: root/plugin/quickfix_auto_open.vim
blob: 73b3f4bc0ac6c24ab1129013a75ee22ad0bba793 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"
" 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 in self-clearing group
augroup quickfix_auto_open
  autocmd!
  autocmd VimEnter *
        \ cwindow
  autocmd QuickFixCmdPost [^l]*
        \ cwindow
  autocmd QuickFixCmdPost l*
        \ lwindow
augroup END