June 2, 2005 @ 11:43 pm
· Filed under Rails
Grab and install eruby.vim into ~/.vim/syntax. Then following this tip add:
au BufNewFile,BufRead *.rhtml set syn=eruby
While you are at that, make sure you check out HowtoUseVimWithRails.
June 21, 2005
@ 8:45 pm
[…] « Beauty of Ruby or Rails? VIM, Rails and rhtml files This fixes my irritating issues with the rhtml file syntax highlighting… I even th […]
June 26, 2005
@ 7:07 pm
afaict, that “au BufNewFile” line usually goes in filetype.vim.
thanks for the link!
June 27, 2005
@ 11:24 am
True, maybe I should file a wishlist against vim-common:
nic@rails:~$ dpkg -S /usr/share/vim/vim63/filetype.vim
Update: Report filed.
November 9, 2005
@ 2:46 am
awesome, thanks for the tip!
August 4, 2006
@ 3:13 am
Thanks for this one!
RSS feed for comments on this post