In the standard filetype.vim that comes with MacVim , I have the following:
au BufNewFile,BufRead *.erb,*.rhtml setf eruby
I installed MacVim using Homebrew and I installed Janus . Following Janus instructions, I created ~/.vimrc.local to store my local settings. I want to set filetype for *.html.erb files to html.eruby.eruby-rails , so I added the following line to ~/.vimrc.local .
autocmd BufNewFile,BufRead *.html.erb setf html.eruby.eruby-rails
However, it looks like the file type is still selected by MacVim default filetype.vim instead of filetype.vim my change to ~/.vimrc.local .
What do I need to do differently so that MacVim correctly designates *.html.erb files as filetype html.eruby.eruby-rails without changing the default filetype.vim ?
source share