- 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<C-\>to search for all occurrences of the current word under the cursor in every file
- Full git integration
:Ggrepto search the work tree withgit grepamong many other features via vim-fugitive package:Gbrowseto open files/commits/etc in GitHub via vim-rhubarb package
- Shows a git diff in the "gutter" (sign column) of the editor,
[cand]ckey mappings available to navigate diff hunks and more via vim-gitgutter package
- bundler wrapper, e.g.
:Bundleto runbundle,gf(go to file) works inGemfile.lock, among other features via vim-bundler package - rails integration, e.g.
gffor partials and others,:Rails console,:Generate controller Blog, among many other features via vim-rails package - Auto adds
endafterif,do,defand several other keywords via vim-endwise package
- Supports installing and using Language Server Protocols via
vim-lspandvim-lsp-settingspackages. - Adds custom mappings for some of the functions provided by vim-lsp:
gdfor navigating to the definition of the word under the cursor.gpdfor peek at the definition of the word under the cursor.gsto take a look and navigate across the document symbols.gSto search through the workspace symbols.
gcorgcc(depending on mode) to toggle source code commented state and more via vim-commentary package- Highlights trailing whitespaces in red and provides
:FixWhitespaceto 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*.swpfiles kept in hidden location to avoid dirty directories- Persistent undo and redo. E.g. You can undo after closing and reopening vim.
Put any extra configuration and/or overrides in ~/.vimrc.after. cedarvim will pick them up automatically.
$ cd ~/.vim
$ git submodule add <plugin-git-url> pack/cedarvim/start/<plugin-name>
$ cd ~/.vim
$ git submodule deinit pack/cedarvim/start/<plugin-name>
$ git rm pack/cedarvim/start/<plugin-name>