Skip to content

Commit

Permalink
Golang config
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt committed Mar 28, 2014
1 parent d30681c commit 4edff2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ autocmd vimrc FileType ruby setlocal ts=2 sts=2 sw=2 expandtab
autocmd vimrc FileType eruby setlocal ts=2 sts=2 sw=2 expandtab
autocmd vimrc FileType javascript setlocal ts=2 sts=2 sw=2 expandtab
autocmd vimrc FileType css setlocal ts=2 sts=2 sw=2 expandtab
autocmd vimrc FileType go setlocal ts=4 sts=4 sw=4 noexpandtab

" Indenting *******************************************************************
set autoindent " Automatically set the indent of a new line
Expand Down Expand Up @@ -241,3 +242,5 @@ noremap <leader>' :TRecentlyUsedFiles<cr>
" exe prefix . "noremap " . key . " <Nop>"
" endfor
" endfor
" Autoformatting for golang
autocmd BufWritePre *.go Fmt

0 comments on commit 4edff2e

Please sign in to comment.