git clone git:https://github.com/zzzhc/vimrc.git
cd vimrc
ln -sf `pwd`/vimrc ~/.vimrc
mkdir -p ~/.vim/bundle
git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle
ln -s `pwd`/macros ~/.vim/bundle/vundle/
Launch vim
, run :BundleInstall
puts your own vimrc to ~/.vim/.vimrc, ~/.vimrc will source it.
- supertab
- Ack
- CtrlP
- NERDTree
- NERDCommenter
- vim-abolish
- vim-rails
- vim-rake
- vim-bundler
- zencoding
- snipmate
- railscasts-theme
- FuzzyFinder
- a
- project
- matchit
- vcscommand
- Align
- color scheme is railscasts theme
- All trailing white spaces will be removed when saving file
- Tab is expanded to
2
spaces - Using
:cstag
instead of the default :tag behavior - Backup is disabled
- autoindent is on
- autochdir is off, use \cd to switch current window's directory to editing file's
\t
search file under current directory, like textmate's Command+t<F2>
toggle NERDTree<F3>
grep recursive<F4>
toggle TagList<F5>
VCSBlame<F6>
find tags<F7>
find buffers<F8>
find files<Ctrl + s>
save<Ctrl + insert>
copy<Shift + insert>
pastett
open new tabtd
close current tabtn
move to next tabtp
move to previous tab- [mac only]
command + number
switch tab
- in visual mode,
ah
aligh code by => - in visual mode,
ae
aligh code by =
when you open a rails project, below abbrs is set for fuzzy find files
r
: search under project rootcc
: search under configa
: search under appc
: search under app/controllersm
: search under app/modelsv
: search under app/viewsh
: search under app/helpersj
: search under public/javascripts and app/assets/javascriptsss
: search under public/stylesheets and app/assets/stylesheetss
: search under specp
: search under vendor/plugins