Home

Awesome

Triglav's Vim files

Download

Clone the repository and download submodules:

$ git clone --recursive https://github.com/triglav/vim-files.git ~/.vim

Get the most recent version of submodules:

$ cd ~/.vim
$ git submodule update --remote --merge --recursive

Installation

Create .vimrc link in your home directory:

$ ln -s ~/.vim/.vimrc ~/.vimrc

Generate Vim doc tags with pathogen:

:Helptags

Compile YCM: http://valloric.github.io/YouCompleteMe/#installation

$ cd bundle/you-complete-me
$ ./install.sh --clang-completer

Override .vimrc

If you would like to override some of the default settings, you can create your own ~/.vimrc containing following line:

source ~/.vim/.vimrc

Fonts

I am using DejaVu Sans Mono for Powerline fonts on every platform (vim-airline makes use of the special characters).

You can get them for free at: https://github.com/Lokaltog/powerline-fonts/tree/master/DejaVuSansMono

Windows

Custom commands

This config contains a couple of very useful commands:

CommandDescription
<leader>WStrips all trailing whitespace in the current file.
<leader>vReselects the text that was just pasted.
<Leader>rForces vim screen redraw.
<Leader>mOpens Buf Explorer plugin window.
<Leader>cdChanges the current directory to the file being edited.
<Leader>lToggles list display
<Leader>wToggles wrap display
<Leader>tOpens new tab
<Leader>gdFugitive's git diff
<Leader>gbFugitive's git blame
<Leader>gsFugitive's git status
<Leader>dt:diffthis
<Leader>do:diffoff
<Leader>du:diffupdate
<C-S-Del>Deletes the current file
<F12>Toggle Tagbar
<C-F12>Regenerate tags
<F4>Toggle paste mode
Yy$
-Displays the directory listing in the current buffer