Sunday, May 11, 2008

Rails.vim breaks in Hardy Heron

Well, Vim breaks when using rails.vim in Ubuntu 8.04 Hardy Heron. Took me a few days to decide to actually try and fix it and not downgrade back down to Gutsy.

This post explains what you can do to fix this error. We'll upgrade to the latest Vim. Because the error is caused by an old version of Vim and rails.vim, you need to update it. You can read about it in this thread. That was my starting point to find the fix.

1) Download and install the latest version of Vim

svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7
cd vim7
./configure --with-features=huge
sudo make
sudo make install

2) Install all the plugins and scripts again
3) If you use haml, when I downloaded the latest version today of the haml syntax script, I had some illegal carriage return errors. I had to open haml.vim then save it via

:w ++ff=unix

4 comments:

Ramon said...

I did a clean install of Hardy Heron and tried to follow this blog post, but it didn't work. It seems you have to install something before you do the "configure"

sudo apt-get install libncurses5-dev

Ramon said...

Also, I put all my plugins and stuff in ~/.vim/ -- it seems that it's different now!

John said...

Saving the haml.vim file with :w ++ff=unix saved my day! Thank you!

The original file at http://www.vim.org/scripts/script.php?script_id=1773 should be fixed...

sam said...

Awesome I had the same problem with haml.vim on OS X with vim7 :w ++f=unix saved the day. Now my haml looks colorful