Friday, February 19, 2010

Vim editor for ruby on rails development using rails.vim

by Sandip Ransing 0 comments
Tags

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://github.com/sandipransing/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

blog comments powered by Disqus

About The Author

Sandip is a ruby on rails developer based in pune and also a blogger at funonrails. Opensource contributor and working with Josh software Private Limited. for more info read Follow Sandip on Twitter for updates.

Connect With Me...

Github Projects

@sandipransing Twitter