Overriding MacVim's default filetype.vim when assigning filetypes -
in default filetype.vim
comes macvim, have following:
au bufnewfile,bufread *.erb,*.rhtml setf eruby
i installed macvim using homebrew, , i've installed janus. following instructions janus, i've created ~/.vimrc.local
store local customizations. want set filetype *.html.erb
files html.eruby.eruby-rails
, added following line ~/.vimrc.local
.
autocmd bufnewfile,bufread *.html.erb setf html.eruby.eruby-rails
however, appears filetype still being selected macvim's default filetype.vim
instead of picking change in ~/.vimrc.local
.
what need differently, have macvim designate *.html.erb
files filetype html.eruby.eruby-rails
without modifying default filetype.vim
?
change setf
in autocmd set ft=
. if take @ :help setf
says not set filetype if has been set elsewhere.
Comments
Post a Comment