Is there a way to make Vim close Syntastic buffer when closing the main file?
I.e. I'd like Syntastic to run automatically on file opening, and "disappear" when I choose the main file with either ZZ or :q!.
With my default configuration Syntastic buffer remains (if there are unresolved warnings) and must be closed manually.
My .vimrc entries related to Syntastic:
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_check_on_wq = 0– lcd047 Jul 14 '16 at 07:29syntasticbut to deal with the quickfix window (which also stays open when you close the buffer) I have a mapping:nnoremap ZZ :xall<cr>. – grochmal Jul 14 '16 at 13:36