Vim editor for ruby on rails development using rails.vim

Vim install On CentOS

yum install vim-enhanced

Vim install on Ubuntu machine

Install vim-full using command

apt-get install vim

While coding with ruby, html, erb, haml, js and stylesheets.
It is great pain to indent code. Using rails vim one can easily
keep code always indented.

This increases code readability and minimizes effort, bugs and
finally proves ease of using vim editor.

rails.vim script contains lot of syntax highlighter and indentation
plugins that really helps development needs.

If you have git installed then clone it under .vim directory of your profile

git clone git://gitorious.org/ubuntu-on-rails/rails-vim.git ~/.vim

To install from zip file download & extract it inside ~/.vim directory

download link: http://www.vim.org/scripts/download_script.php?src_id=11920

wget http://www.vim.org/scripts/download_script.php?src_id=11920 /rails.vim 

This is how my editor looks like

Open your ~/.bashrc and at the bottom add:
alias vi=vim
export EDITOR=vim

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.