Skip to content

Instantly share code, notes, and snippets.

@cwvh
Created Aug 15, 2014
Embed
What would you like to do?
minimal vimrc
set nocompatible
filetype plugin indent on
syntax on
let mapleader = " "
no j gj
no k gk
no <c-j> 6j
no <c-k> 6k
no <c-a> ^
no <c-e> $
no <leader>h <c-w>h
no <leader>j <c-w>j
no <leader>k <c-w>k
no <leader>l <c-w>l
set backspace=indent,eol,start
set nobackup noswapfile
set smartindent smarttab
set incsearch
set ruler
set mouse=a
au BufNewFile,BufRead * setlocal formatoptions-=cro
au FileType c setlocal ts=8 sw=8 noet fo+=tcqlron com-=:// com+=f:// cino=:0,l1,t0,g0
au FileType cpp setlocal ts=4 sw=4 et matchpairs+=<:> cinoptions=g0
au FileType python setlocal nosmartindent
au FileType html,xml setlocal ts=2 sw=2 ts=2 et
au FileType haskell,cabal setlocal sw=2 ts=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment