Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to selectively disable checkers for certain file types when using syntastic in vim?

For example, HTML partial templates are being flagged with tons of errors but they are supposed to be fragments of a complete HTML doc.

like image 858
Eno Avatar asked Aug 04 '15 19:08

Eno


Video Answer


1 Answers

In your .vimrc:

let g:syntastic_mode_map = {
    \ "mode": "active",
    \ "passive_filetypes": ["go"] }

This sets Syntastic to active mode (checks are made on save or open) but not for, in this case, Go files, which will be checked only when explicitly running :SyntasticCheck. Just change the array of passive_filetypes to whatever you need.

like image 197
safetycopy Avatar answered Sep 19 '22 23:09

safetycopy