gignosko
gignosko

Reputation: 987

Can I keep syntastic from opening the Location List?

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?

Upvotes: 8

Views: 2197

Answers (2)

tsh
tsh

Reputation: 2375

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

Upvotes: 11

Eugene Yarmash
Eugene Yarmash

Reputation: 149776

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).

Upvotes: 0

Related Questions