set nocompatible setlocal spell spelllang=en_us syn off filetype plugin indent on set autoindent set autowrite set expandtab " expand tabs by default (overloadable per file type later) set ignorecase set incsearch set list set listchars=tab:>\ ,trail:~,extends:>,precedes:< set hls set nospell set ruler set viminfo="" set shiftwidth=2 set smarttab set tabstop=2 set softtabstop=4 " when hitting , pretend like a tab is removed, even if spaces set shiftround " use multiple of shiftwidth when indenting with '<' and '>' set wildmenu set wildmode=longest:full,full set nobackup " Don't create annoying backup files set noswapfile " Don't use swapfile set nowritebackup set noerrorbells " No beeps set autoread " Automatically reread changed files without asking me anything set autowrite " Automatically save before :next, :make etc. set encoding=utf-8 " Set default encoding to UTF-8 set winminheight=0 " minimize split window set tags=tags;/ " try to find the tags file in the path " makefile autocmd FileType make setlocal noexpandtab tabstop=4 shiftwidth=4 " ruby autocmd FileType ruby setllocal expandtab stabstop=2 hiftwidth=2 softtabstop=2 " golang autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4 autocmd BufWritePost *.go :silent !gofmt -w % " python indent autocmd FileType python setlocal tabstop=2 softtabstop=2 shiftwidth=2 textwidth=100 smarttab expandtab autoindent set laststatus=2 set statusline=%<%f\ %h%w%m%r%y%=L:%l/%L\ (%p%%)\ C:%c%V\ B:%o