From 0cec1864a8c550ce0783ab86e56e18a2098c1de7 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Sat, 13 Jan 2024 16:11:32 +0800 Subject: [PATCH] Use golang gofmt's style. --- .vim/vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.vim/vimrc b/.vim/vimrc index e8702b3..8f09786 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -104,6 +104,7 @@ au BufNewFile,BufRead GNUmakefile set noexpandtab au BufNewFile,BufRead Makefile set noexpandtab au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif au FileType dart,html,javascript,javascriptreact,json,ruby,typescript,yaml set shiftwidth=2 +au FileType go set shiftwidth=4 tabstop=4 autocmd BufEnter * silent! lcd %:p:h autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg" map :NERDTreeToggle