Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I keep syntastic from opening the Location List?

Tags:

vim

syntastic

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?

like image 237
gignosko Avatar asked Oct 06 '16 13:10

gignosko


1 Answers

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
like image 175
tsh Avatar answered Oct 30 '22 10:10

tsh