I work in a lot of legacy files that are huge and previous devs didn't always follow proper styles, so syntastic gives me a ton of linting errors that I don't care about right now. I put syntastc into passive mode and manually check the file then close the location list, which works great. But, after I've manually checked it, every time I :w, the location list opens back up and shows the previous errors. I can't figure out a way to keep this from happening. Any suggestions?
Do you have the syntastic_mode_map
option set in your .vimrc
? This may influence how Syntastic does automatic checking:
In passive mode, automatic checks are still done for filetypes in the "active_filetypes" array (and "passive_filetypes" is ignored). In active mode, automatic checks are not done for any filetypes in the "passive_filetypes" array ("active_filetypes" is ignored).
One can prevent the location list from opening using syntastic_auto_loc_list=0
. A pretty unobtrusive setup is:
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_auto_jump = 0
Combined with highlighting to see the errors better:
hi SpellBad term=reverse ctermbg=darkgreen
Do you have the syntastic_mode_map
option set in your .vimrc
? This may influence how Syntastic does automatic checking:
In passive mode, automatic checks are still done for filetypes in the "active_filetypes" array (and "passive_filetypes" is ignored). In active mode, automatic checks are not done for any filetypes in the "passive_filetypes" array ("active_filetypes" is ignored).
© 2022 - 2024 — McMap. All rights reserved.
:SyntasticReset
to let it know you want it to shut up, rather than just close the error window. – BoyceboyceyBufEnter
triggers a notification refresh, so that the error window gets updated when you switch buffers.. – Boyceboycey