Skip to content

colimacolectivo/Vim-for-Rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

ln -s ~/.vim/vimrc ~/.vimrc
ln -s ~/.vim/gvimrc ~/.gvimrc

user settings can go in ~/.vimrc.local

USAGE

jj = Very useful for keeping your hands on the home row
,n = toggle NERDTree off and on
,f = fuzzy find all files
,F = Fuzzy find flush (refresh when new files are created)
,b = fuzzy find in all buffers
,p = go to previous file
,t = toogle taglist

hh = inserts ‘=>’
aa = inserts ‘@’

,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

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

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published