Grab and install eruby.vim into ~/.vim/syntax. Then following this tip add:
au BufNewFile,BufRead *.rhtml set syn=eruby
to ~/.vimrc.
While you are at that, make sure you check out HowtoUseVimWithRails.
June 2nd, 2005 | Rails
Grab and install eruby.vim into ~/.vim/syntax. Then following this tip add:
au BufNewFile,BufRead *.rhtml set syn=eruby
to ~/.vimrc.
While you are at that, make sure you check out HowtoUseVimWithRails.
5 comments ↓
[...] « Beauty of Ruby or Rails? VIM, Rails and rhtml files This fixes my irritating issues with the rhtml file syntax highlighting… I even th [...]
afaict, that “au BufNewFile” line usually goes in filetype.vim.
thanks for the link!
True, maybe I should file a wishlist against vim-common:
nic@rails:~$ dpkg -S /usr/share/vim/vim63/filetype.vim
vim-common: /usr/share/vim/vim63/filetype.vim
Update: Report filed.
awesome, thanks for the tip!
Thanks for this one!
Leave a Comment