blob: 96676c56b5dabddedfa10a15232990a358b4a189 (
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 *
\ doautocmd quickfix_auto_open QuickFixCmdPost cfile
augroup END
|