Corex Cain
Corex Cain

Reputation: 113

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?

Upvotes: 1

Views: 272

Answers (1)

pbogut
pbogut

Reputation: 877

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.

Upvotes: 2

Related Questions