Skip to content

triglav/vim-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

Command Description
<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>m Opens Buf Explorer plugin window.
<Leader>cd Changes the current directory to the file being edited.
<Leader>l Toggles list display
<Leader>w Toggles wrap display
<Leader>t Opens new tab
<Leader>gd Fugitive's git diff
<Leader>gb Fugitive's git blame
<Leader>gs Fugitive'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
Y y$
- Displays the directory listing in the current buffer

About

Triglav's Vim files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published