Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

VIM config

  1. Install VIM
sudo apt-get install vim
  1. Install Vundle package manager
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  1. Copy .vimrc to your home directory
git clone https://github.com/rikonek/vim-config.git ~/vim-config
ln -s ~/vim-config/.vimrc ~/.vimrc
  1. Run VIM and install plugins
vim
:source %
:PluginInstall
  1. Prepare YouCompleteMe plugin
sudo apt-get install cmake python-dev python3-dev
~/.vim/bundle/youcompleteme/install.py --clang-completer

Keyboard shortcuts

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

Useful commands

Command Description
:%retab! Retabulate the whole file
:Gblame Show git commits in line

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages