Skip to content

Instantly share code, notes, and snippets.

@antonlindstrom
Created April 21, 2009 07:41
Show Gist options
  • Save antonlindstrom/99008 to your computer and use it in GitHub Desktop.
Save antonlindstrom/99008 to your computer and use it in GitHub Desktop.
" 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