This is my VIM configuration, it uses Vundle to manage plugins, NERDTree, YouCompleteMe, Syntastic, UltiSnips and other fancy plugins.
To use this configration you will need to install nodeJS and Yarn.
-
Clone this repository into your vim confuguration folder (
~/.vimfor linux,$HOME/vimfilesfor windows).- Linux:
git clone https://github.com/chocolord/vimfiles ~/.vim - Windows:
git clone https://github.com/chocolord/vimfiles $HOME/vimfiles
- Linux:
-
Set the correct configuration according to the platform into the vimrc file:
- Linux: uncomment lines 6 & 7
- Windows: uncomment lines 10 & 11
-
Install VundleVim:
- Linux:
git clone https://github.com/VundleVime/Vundle.vim.git ~/.vim/bundle/Vundle.vim - Windows:
git clone https://github.com/VundleVime/Vundle.vim.git $HOME/vimfiles/bundle/Vundle.vim
- Linux:
-
Install Vundle plugins, you need to start vim and run the
:PluginInstallcommand -
Compile YouCompleteMe - YouCompleteMe documentation
-
Install the node modules needed with the
install-node-modules.shscript.
| Setting | Description |
|---|---|
| ai | auto indent |
| nu | line numbers |
| sw=4 | shiftwidth set to 4 |
| ts=4 | tabstop set to 4 |
| et | expandtab |
| noswapfile | disable the swap file |
| nocompatible | Disable Vi compatibilities |
| syntax | enables the coloration of the syntax |
| colorscheme | sets the colors of the editor |
| fileencoding(s) | sets the encoding of the file |
The mappings are declared in the vimrc file at the line 60.
Leader key: -
| Mode | Mapping | Acions | Description |
|---|---|---|---|
| INSERT | jk |
<esc> |
quit INSERT mode easily |
| NORMAL | Ctrl+j |
20j |
Scroll 20 lines down |
| NORMAL | Ctrl+k |
20k |
Scroll 20 lines up |
| INSERT | Ctrl+<space> |
Ctrl+n |
Browse autocompletion suggestions |
| NORMAL | <leader>+s |
:set hls!<CR> |
Enable/Disable search results highlighting |
| NORMAL | <leader>+f |
zf% |
Set a fold on the block (ex: fold a function) |
| NORMAL | nt |
:NERDTREEToogle<CR> |
Toggle the NERDTree pannel |
- Learn how to use Vim: Learn Vimscript the Hard Way
- Find packages: vimawesome
- Find your color sheme: vim colors