Created
April 21, 2009 07:41
-
-
Save antonlindstrom/99008 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
" Anton Lindstrom's .vimrc | |
" https://gist.github.com/99008 | |
" Getting rid of vi bugs and turns syntax highlighting on | |
set nocompatible | |
syntax on | |
" History | |
set history=1000 | |
" Indent | |
set autoindent | |
set smartindent | |
set softtabstop=2 | |
set shiftwidth=2 | |
set tabstop=2 | |
set shiftround | |
set expandtab | |
set nowrap | |
set preserveindent | |
set pastetoggle=<F12> "Press <F12> when paste-alot | |
" VIM UI | |
filetype on | |
filetype plugin on | |
set ch=2 | |
set wildmenu | |
set number " Line numbers | |
set report=0 " Do not show changes | |
set showmatch | |
set ruler | |
set incsearch | |
set ignorecase " Ignore case on search | |
set backspace=2 | |
set whichwrap+=<,>,[,],h,l | |
set shortmess=atI | |
set showmode | |
set showcmd | |
set laststatus=2 " Always show status | |
set visualbell | |
set mat=5 " duration to show matching brace (1/10 sec) | |
" Trailing Whitespaces | |
function! StripWhitespace () | |
exec ':%s/ \+$//gc' | |
endfunction | |
map ,s :call StripWhitespace ()<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment