Search code examples
vimvim-pluginsyntastic

Disable check for certain file type


I have an .epp file that's a shell script with Ruby embedded inside. I'm guessing the "shebang" line (#!) activates the sh check.

Is it possible to ignore/disable checks for .epp files?


Solution

  • You can use autocomand in your vimrc

    augroup epp_file_type
      autocmd!
      autocmd BufEnter *.epp set ft=
    augroup END
    

    It will unset file type when buffer is opend by the first time.