From 41885727758add6316327cb31c392fa1625c6bf4 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Fri, 12 Jan 2024 03:36:47 +0800 Subject: [PATCH] Set golang indent to my default value (4), not 2. --- .vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/vimrc b/.vim/vimrc index 737cc7e..4211a18 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -103,7 +103,7 @@ au BufNewFile,BufRead *.vue set filetype=html 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,go,html,javascript,javascriptreact,json,ruby,typescript,yaml set shiftwidth=2 +au FileType dart,html,javascript,javascriptreact,json,ruby,typescript,yaml set shiftwidth=2 autocmd BufEnter * silent! lcd %:p:h autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg" map :NERDTreeToggle