diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-24 17:06:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-24 17:06:35 +1200 |
commit | a2eccef1861e2c0be988bc182d7b14be94ebc9ed (patch) | |
tree | c0abe0d25df4ff53da58ce617eb228e424e61930 /plugin/quickfix_auto_open.vim | |
download | vim-quickfix-auto-open-a2eccef1861e2c0be988bc182d7b14be94ebc9ed.tar.gz vim-quickfix-auto-open-a2eccef1861e2c0be988bc182d7b14be94ebc9ed.zip |
First versionv0.1.0
Diffstat (limited to 'plugin/quickfix_auto_open.vim')
-rw-r--r-- | plugin/quickfix_auto_open.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugin/quickfix_auto_open.vim b/plugin/quickfix_auto_open.vim new file mode 100644 index 0000000..e2f111f --- /dev/null +++ b/plugin/quickfix_auto_open.vim @@ -0,0 +1,22 @@ +" +" quickfix_auto_open.vim: Always pop open the quickfix list or location list +" when they're changed. Dispassionately stolen from romainl's minivimrc. +" +" Author: Tom Ryder <tom@sanctum.geek.nz> +" License: Same as Vim itself +" +if exists('g:loaded_quickfix_auto_open') || &compatible + finish +endif +if !exists('##QuickfixCmdPost') || !exists('##VimEnter') + finish +endif +let g:loaded_quickfix_auto_open = 1 + +" Always pop open quickfix and location lists when changed +augroup quickfix_auto_open + autocmd! + autocmd QuickfixCmdPost [^l]* cwindow + autocmd QuickfixCmdPost l* lwindow + autocmd VimEnter * cwindow +augroup END |