1

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?

Dan Lowe
  • 51,713
  • 20
  • 123
  • 112
Corex Cain
  • 123
  • 1
  • 7

1 Answers1

2

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.

pbogut
  • 857
  • 1
  • 9
  • 22
  • 2
    Or just set `b:syntastic_mode` to `passive` instead of killing `filetype`. That's what the manual recommends. – lcd047 Jun 01 '17 at 09:23
  • @lcd047 Wouldn't that disable syntastic completely? – Corex Cain Jun 01 '17 at 10:34
  • 1
    @CorexCain No worries. What @lcd047 suggested will disable syntastic only for the current buffer (as it is `b:` variable which means it is scoped to the buffer). – pbogut Jun 01 '17 at 11:53