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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With