From fc55de2540d4375e577d61c5745dab3cce29f169 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Mon, 27 May 2024 09:20:01 +0800 Subject: [PATCH] Set typescriptreact to sw=2. --- .vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/vimrc b/.vim/vimrc index ae83c78..6789803 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -102,7 +102,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 css,dart,html,javascript,javascriptreact,json,ruby,typescript,yaml set shiftwidth=2 +au FileType css,dart,html,javascript,javascriptreact,json,ruby,typescript,typescriptreact,yaml set shiftwidth=2 au FileType go set noexpandtab shiftwidth=4 tabstop=4 autocmd BufEnter * silent! lcd %:p:h autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg"