- Install VIM
- Install Vundle package manager
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
- Copy
.vimrc to your home directory
git clone https://github.com/rikonek/vim-config.git ~/vim-config
ln -s ~/vim-config/.vimrc ~/.vimrc
- Run VIM and install plugins
vim
:source %
:PluginInstall
- Prepare YouCompleteMe plugin
sudo apt-get install cmake python-dev python3-dev
~/.vim/bundle/youcompleteme/install.py --clang-completer
| Shortcut |
Command |
Description |
| CTRL-b |
|
Toggle NERD Tree |
| CTRL-n |
:Startify |
Startify |
| CTRL-m |
|
Toggle tag bar |
| [c |
|
Previous git changes |
| ]c |
|
Next git changes |
| CTRL-w n |
|
New window |
| CTRL-w v |
:vsplit |
Split window |
| CTRL-w q |
:q |
Quit |
| CTRL-w arrow |
:wincmd hjkl |
Move cursor to other window |
| CTRL-w CTRL-w |
|
Move cursor to next window |
| CTRL-w r |
|
Swap splitted windows |
| CTRL-w v |
:vsplit |
Vertical split window |
| CTRL-w t |
:tabnew |
New tab |
| CTRL-w t q |
:tabclose |
Close tab |
| CTRL-w h |
:tabprev |
Previous tab |
| CTRL-w l |
:tabnext |
Next tab |
| Command |
Description |
| :%retab! |
Retabulate the whole file |
| :Gblame |
Show git commits in line |