From c4cc0bf2d1453cf514e026fdf201246778924fc1 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Mon, 13 Nov 2023 16:30:50 +0800 Subject: [PATCH] Add typescript to sw=2. --- .vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/vimrc b/.vim/vimrc index f025d66..255fa16 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -107,7 +107,7 @@ au BufNewFile,BufRead *.rb set shiftwidth=2 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 javascript,javascriptreact set shiftwidth=2 +au FileType javascript,javascriptreact,typescript set shiftwidth=2 au FileType json,yaml set shiftwidth=2 autocmd BufEnter * silent! lcd %:p:h autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg"