inoremap { {}ko inoremap ( ()ko "inoremap { {}ha i set ruler set hlsearch syntax enable set shiftwidth=3 set tabstop=3 autocmd Filetype * setlocal ts=3 sts=3 sw=3 expandtab set expandtab set number set relativenumber set autoindent " Comment formatting for C/C++/CSS set formatoptions+=r "set nowrap " cleaner wrap set breakindent " case insensitive default (goes sensitive if there's a capital letter) set ignorecase set smartcase " nice word wrapping set wrap set linebreak "set mouse=a "if has("mouse_sgr") " set ttymouse=sgr "else " set ttymouse=xterm2 "end " goimports on save autocmd BufWritePre * %s/\([^ ]\) $/\1/e autocmd BufWritePre * %s/\s\s\s\+$//e autocmd BufWritePost *.go !timeout 2 goimports -w % autocmd BufRead,BufNewFile *.go set autoread "set rtp+=timeout 2 $GOPATH/src/github.com/golang/lint/misc/vim "autocmd BufWritePost,FileWritePost *.go execute 'Lint' | cwindow autocmd Filetype java setlocal ts=4 sts=4 sw=4 expandtab autocmd Filetype php setlocal ts=4 sts=4 sw=4 noexpandtab autocmd Filetype yaml setlocal ts=2 sts=2 sw=2 expandtab autocmd Filetype eyaml setlocal ts=2 sts=2 sw=2 expandtab autocmd Filetype yml setlocal ts=2 sts=2 sw=2 expandtab autocmd Filetype rb setlocal ts=2 sts=2 sw=2 expandtab autocmd Filetype Jenkinsfile setlocal ts=3 sts=3 sw=3 noexpandtab autocmd Filetype js setlocal ts=4 sts=4 sw=4 noexpandtab autocmd Filetype javascript setlocal ts=4 sts=4 sw=4 expandtab autocmd Filetype typescript setlocal ts=2 sts=2 sw=2 expandtab autocmd Filetype ts setlocal ts=2 sts=2 sw=2 expandtab set binary set ffs=unix autocmd FileType crontab setlocal nowritebackup "colors pyte