vimpluginsconfigurationsyntasticsyntax-checking

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.


Solution

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