Created
August 15, 2014 21:38
-
-
Save cwvh/65d325e1b35452fc9aca to your computer and use it in GitHub Desktop.
minimal vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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