Skip to content

Instantly share code, notes, and snippets.

@cwvh
Created August 15, 2014 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwvh/65d325e1b35452fc9aca to your computer and use it in GitHub Desktop.
Save cwvh/65d325e1b35452fc9aca to your computer and use it in GitHub Desktop.
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