Skip to content

Instantly share code, notes, and snippets.

@papauorg
Created July 13, 2016 10:24
Show Gist options
  • Save papauorg/c28a03eda2952abb3a4cdd34c6c5133d to your computer and use it in GitHub Desktop.
Save papauorg/c28a03eda2952abb3a4cdd34c6c5133d to your computer and use it in GitHub Desktop.
VsVim configuration file
" Place this file in your %USERPROFILE% folder to take effect in VsVim (see https://github.com/jaredpar/VsVim/wiki/faq#how-can-i-verify-my-vimrc-is-loading)
set vsvim_useeditordefaults
set smartcase!
set ignorecase
" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
let mapleader = ","
let g:mapleader = ","
" Set 3 lines to the cursor - when moving vertically using j/k
set so=3
" Configure backspace so it acts as it should act
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
" allow saving a file with captial W
command! W write
" Highlight search results
set hlsearch
" Makes search act like search in modern browsers
set incsearch
" For regular expressions turn magic on
set magic
" Show matching brackets when text indicator is over them
set showmatch
" How many tenths of a second to blink when matching brackets
set mat=2
" No annoying sound on errors
set noerrorbells
set novisualbell
set t_vb=
set tm=500
" Turn backup off, since most stuff is in SVN, git et.c anyway...
set nobackup
set nowb
set noswapfile
imap jj <Esc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment