Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Triglav's Vim files

Download

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

Installation

Create .vimrc link in your home directory:

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

Generate Vim doc tags:

:call pathogen#helptags()

Fonts

I am using DejaVu Sans Mono fonts on every platform.

You can get them for free at: http://dejavu-fonts.org

Windows

  • use ~/vimfiles instead of ~/.vim
  • create rather a hard link (without the -s flag) instead
  • set enviroment variable GITDIR to the location of your git.exe
  • set enviroment variable PERLDIR to the location of your perl.exe and ack-grep script file (download it from http://betterthangrep.com/ack-standalone)

Custom commands

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

About

Triglav's Vim files.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages