diff --git a/after/ftplugin/qf.vim b/after/ftplugin/qf.vim index 90e81a7..18edda8 100644 --- a/after/ftplugin/qf.vim +++ b/after/ftplugin/qf.vim @@ -146,6 +146,7 @@ command! -buffer ListLists call qf#namedlist#ListLists() command! -buffer -nargs=* -bang -complete=customlist,qf#namedlist#CompleteList RemoveList call qf#namedlist#RemoveList(expand("") == "!" ? 1 : 0, ) " quit Vim if the last window is a quickfix window +autocmd! qf * autocmd qf BufEnter nested if get(g:, 'qf_auto_quit', 1) | if winnr('$') < 2 | q | endif | endif autocmd qf BufWinEnter nested if get(g:, 'qf_auto_quit', 1) | call qf#filter#ReuseTitle() | endif