Clone the repository and download submodules:
$ git clone https://github.com/triglav/vim-files.git ~/.vim
$ cd ~/.vim
$ git submodule init
$ git submodule update
Get the most recent version of submodules:
$ git submodule foreach git checkout master
$ git submodule foreach git pull
Create .vimrc
link in your home directory:
$ ln -s ~/.vim/.vimrc ~/.vimrc
Generate Vim doc tags:
:call pathogen#helptags()
I am using DejaVu Sans Mono fonts on every platform.
You can get them for free at: http://dejavu-fonts.org
- use
~/vimfiles
instead of~/.vim
- create rather a hard link (without the
-s
flag) instead - set enviroment variable
GITDIR
to the location of yourgit.exe
- set enviroment variable
PERLDIR
to the location of yourperl.exe
andack-grep
script file (download it from http://betterthangrep.com/ack-standalone)
This config contains a couple of very useful commands:
<leader>W
Strips all trailing whitespace in the current file.<leader>v
Reselects the text that was just pasted.<Leader>r
Forces vim screen redraw.<Leader>n
Opens the NERD Tree plugin window.<Leader>m
Opens Buf Explorer plugin window.<Leader>cd
Changes the current directory to the file being edited.<Leader>l
Toggles list display<Leader>t
Opens new tab