VIM on Rails is an opinionated sets of VIM plugins, colorschemes, settings and shortcuts design for Ruby on Rails development. It's a work in progress and I will add features along the way.
I will try to document possible scenarios developers found themselves when writing Ruby on Rails code. For each scenario I'll list the way I've solved it.
gem install exuberant_ctags ri_vim
git clone https://github.com/soulnafein/vim-on-rails.git
cd vim-on-rails
rake install
This will take care of your existing .vim folder and .vimrc .gvimrc files You can restore your previous VIM environment by typing:
rake uninstall
Common developers editing needs. I will assume a basic knowledge of VIM modes, movement commands and so on.
CTRL + UP
or CTRL + DOWN
moves one line. Selects more than one line in
visual mode to move them up as well (e.g. SHIFT+V
)
TODO
Just press CTRL+S
baby! Because :w is just awkward.
I might actually try to implement the autosave file when it loses focus like in RubyMine
Press CTRL+ALT+S
to save all buffers (e.g. :wall)
CTRL + SPACE
Not sure yet about the shortcut yet. The command is
:FufBufferTagAll
and it's provided by FuzzyFinder plugin
I have to use surround.vim plugin but I'm not sure how yet
Not available yet.
CTRL+SHIFT+N
Again thank you FuzzyFinder ALT+SHIFT+N
,e
and type the name of the file and enter
CTRL+W, v
CTRL+W, n
CTRL+W, direction
where direction is one of h,j,k,l
,,
and the same again to zoom out
Not implemented yet