- Vim 7.4+ (8.0+ recommended)
$ git clone https://github.com/cedarcode/cedarvim ~/.vim
$ cd ~/.vim
$ git submodule init
$ git submodule update
$ cd ~/.vim
$ git pull
$ git submodule update
<C-p>
to quickly search and open files and more via ctrlp.vim package<C-b>
to quickly go back to recently opened files<C-n>
to open/close file explorer and more via nerdtree package
- Auto closing of quotes, parenthesis, brackets and more via delimitMate package
- Full git integration
:Ggrep
to search the work tree withgit grep
among many other features via vim-fugitive package:Gbrowse
to open files/commits/etc in GitHub via vim-rhubarb package
- Shows a git diff in the "gutter" (sign column) of the editor,
[c
and]c
key mappings available to navigate diff hunks and more via vim-gitgutter package
- bundler wrapper, e.g.
:Bundle
to runbundle
,gf
(go to file) works inGemfile.lock
, among other features via vim-bundler package - rails integration, e.g.
gf
for partials and others,:Rails console
,:Generate controller Blog
, among many other features via vim-rails package - Auto adds
end
afterif
,do
,def
and several other keywords via vim-endwise package
<leader>c<space>
to toggle code comment state of selected lines and more via nerdcommenter package- Highlights trailing whitespaces in red and provides
:FixWhitespace
to fix it via vim-trailing-whitespaces package - Several default settings recommended by @tpope via vim-sensible package
- 20+ key mapping/shortcuts recommended by @tpope via vim-unimpaired package
- Shows line numbers by default
- Uses 2-spaces indentation by default
- Uses system clipboard by default
- Mouse/trackpad enabled in all modes by default
<C-Up>
and<C-Down>
to move text lines up and down easily, in both normal and visual modes*.swp
files kept in hidden location to avoid dirty directories