My awesome VIM configuration.
First of all, you need to init and update all bundle submodules.
$ git submodule update --init
Plugins flagged with * needs attention to setup, just follow what README file of the plugin, skiping the vim installation steps. It's recommended to you to read how to use each of the listed plugins below.
- * ag -
brew install ag
- * gist-vim
- * vim-airline - you can install the patched Iconsolata font at
Syntax / Indent:
Utility plugins, required for some plugins.
Custom key mapping
- Y - Yank all characters after current cursor position (y$)
- TT - Generate project tags file
- Leader + , - Hide search highlight (:nohl)
- Leader + ev - Open user ~/.vimrc file (:edit $MYVIMRC)
- Leader + v - Reload VIM configuration (:source $MYVIMRC)
- Shift + Space - Remove trailing whitespaces.
- :Bytes - Get the number of bytes of this buffer. It doesn't need to be saved.
Git / Commiting:
- Leader + s - Open git status interface (:Gstatus)
- gwp - Write commit file and push to current branch (:Gwrite | Git push origin [currentbranch])
- dgh - Get diff from left buffer (:diffget //2 | diffupdate)
- dgl - Get diff from right buffer (:diffget //3 | diffupdate)
- Command + Shift + Enter - Expand current buffer (:only)
- Leader + Tab - Swap to last edited buffer (:b#)
- Leader + d - Close current buffer (:bd)
- Leader + D - Close current buffer without saving (:bd!)
- Leader + W - Close current buffer and save (:w | bd)
- Leader + n - New buffer (:new)
- Leader + t - Open ctrl-p for files (:CtrlP)
- Leader + T - Open ctrl-p for tags (:CtrlPTag)
- Leader + f - Open ctrl-p for tags (:CtrlPFiletype)
- Leader + b - Open ctrl-p for buffers (:CtrlPBuffer)
- Leader + l - Toggle NERDTree (:NERDTreeToggle)
- Leader + L - Open new NERDTree buffer (:NERDTree)
- Leader + a - Run :Ag [pattern]
- Leader + B - Open Buffer Explorer (:BufExplorer)
- Command + [ - Indent current line/selection leftwards
- Command + ] - Indent current line/selection rightwards
Awesome colorscheme flavors