Skip to content
This repository

This is the awesome config files to develop Ruby on Rails with vim

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 autoload
Octocat-spinner-32 bundle
Octocat-spinner-32 colors
Octocat-spinner-32 doc
Octocat-spinner-32 plugin
Octocat-spinner-32 syntax
Octocat-spinner-32 tmp
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 README.md
Octocat-spinner-32 gvim-for-rails.vim
Octocat-spinner-32 install.sh
Octocat-spinner-32 update_all_bundles.sh
Octocat-spinner-32 vim-for-rails.vim
README.md

The awesome Vim config files

This will allow you to run mac vim and develop on Ruby on Rails.

Some features include:

  • nice theme for gui and terminal with 16 colors. (ir_black and xterm16)
  • incremental Search that ignore case by default
  • Swap and backup out of your way

to install: you need to install macvim. If you are using OSX with macports you can run: sudo port install macvim +ruby

WARNING: The +ruby variant depends on ruby from macport! this could reinstall a new ruby env! You only require ruby support for command-t plugin. So you could remove +ruby to install it without ruby support:

then add the config files:

git clone git://github.com/framallo/Vim-for-Rails.git ~/.vim

cd ~/.vim
git submodule init
git submodule update

Then you need to load on ~/.vimrc. e.g.:

source ~/.vim/vim-for-rails.vim

" solarized dark background
colorscheme solarized
set background=dark

Then you need to load on ~/.gvimrc. e.g.:

source ~/.vim/gvim-for-rails.vim

USAGE

 -----------------------------------------------------------------------------  
 |                            VIM Settings                                   |
 |                   (see gvimrc for gui vim settings)                       |
 |                                                                           |
 | Some highlights:                                                          |
 |   jj = <esc>  Very useful for keeping your hands on the home row          |
 |   ,n = toggle NERDTree off and on                                         |
 |   ,N = find current file in  NERDTree                                     |
 |                                                                           |
 |   ,FC = fuzzy find coverage files (or ,f)                                 |
 |   ,FF = fuzzy find files                                                  |
 |   ,FD = fuzzy find directory                                              |
 |   ,FL = fuzzy find in lines                                               |
 |   ,FB = fuzzy find buffers                                                |
 |   ,FR = fuzzy find refresh files                                          |
 |   ,p = go to previous file                                                |
 |   ,t = toogle taglist                                                     |
 |                                                                           |
 |   ,h = new horizontal window                                              |
 |   ,v = new vertical window                                                |
 |                                                                           |
 |   ,i = toggle invisibles                                                  |
 |                                                                           |
 |   enter and shift-enter = adds a new line after/before the current line   |
 |                                                                           |
 |   :call Tabstyle_tabs = set tab to real tabs                              |
 |   :call Tabstyle_spaces = set tab to 2 spaces                             |
 |                                                                           |
 | Put machine/user specific settings in ~/.vimrc.local                      |
 -----------------------------------------------------------------------------  

Keyboard Layout

I use english keyboard layout since is the most efficient layout for development. Also I use the Caps Lock key as control key.

Wish List

Things i want to include, build, improve, etc

  • Git grep inside vim
  • mvim should open a new tab and pwd should be set to the current file
  • running 'mvim' or 'mvim .' should open the NERDTREE by default and an empty window on the right

See it

!http://s3.amazonaws.com/tangosource_pm/100824164544/100824164544_Screen_shot_2010-08-24_at_11.36.20_AM.png!

Thanks

Thanks to twerth for his config files Thanks to Rafa for introducing me to the world of mac and spending some time testing this config! :D

Something went wrong with that request. Please try again.