- Vim 7.4+ (8.0+ recommended)
$ git clone https://github.com/cedarcode/cedarvim ~/.vim
$ cd ~/.vim
$ git subomdule init
$ git submodule update
$ cd ~/.vim
$ git pull
$ git submodule update
- Shows line numbers by default
- Uses 2-spaces indentation by default
- Uses system clipboard by default
- Mouse/trackpad enabled in all modes by default
*.swp
files kept in hidden location to avoid dirty directories<C-b>
for easy buffer switching<C-Up>
and<C-Down>
to move text lines up and down easily, in both normal and visual modes<C-n>
to toggle NERDTree
- delimitMate: automatic closing of quotes, parenthesis, brackets and more
- vim-fugitive: full git integration, e.g.
:Ggrep
to search the work tree withgit grep
among others - vim-rhubarb: extends vim-fugitive with
:Gbrowse
to open files/commits/etc in GitHub and more - vim-gitgutter: shows a git diff in the 'gutter' (sign column), use
[c
and]c
to navigate hunks and more
- vim-bundler: bundler wrapper, e.g.
:Bundle
to runbundle
, it makesgf
work inGemfile.lock
, among other things - vim-rails: rails integration, e.g.
gf
for partials and others,:Rails console
,:Generate controller Blog
, among other things - vim-endwise: automatically adds
end
afterif
,do
,def
and several other keywords
- nerdcommenter:
<leader>c<space>
to toggle code comment state of selected lines and more - vim-trailing-whitespaces: highlights trailing whitespace in red and provides
:FixWhitespace
to fix it - vim-sensible: default settings recommended by @tpope
- vim-unimpaired: 20+ key mapping/shortcuts recommended by @tpope