From d0542c7a033c45d1760c17557bf5a582263af5f6 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 14 Feb 2021 17:42:24 +0900 Subject: Update .vim: Add TypeScript settings --- .vim/my/after/ftplugin/typescript.vim | 16 ++++++++++++++++ .vimrc | 1 + 2 files changed, 17 insertions(+) create mode 100644 .vim/my/after/ftplugin/typescript.vim diff --git a/.vim/my/after/ftplugin/typescript.vim b/.vim/my/after/ftplugin/typescript.vim new file mode 100644 index 0000000..cdb1674 --- /dev/null +++ b/.vim/my/after/ftplugin/typescript.vim @@ -0,0 +1,16 @@ +scriptencoding utf-8 + + +if exists('b:did_ftplugin_typescript_after') + finish +endif + + + +FtpluginSetLocal expandtab +FtpluginSetLocal shiftwidth=2 +FtpluginSetLocal softtabstop=2 + + + +let b:did_ftplugin_typescript_after = 1 diff --git a/.vimrc b/.vimrc index 5cc29d5..fa36dcd 100644 --- a/.vimrc +++ b/.vimrc @@ -1228,6 +1228,7 @@ xmap m/b (caw:box:comment) let g:clang_format#auto_format = 1 Autocmd FileType javascript ClangFormatAutoDisable +Autocmd FileType typescript ClangFormatAutoDisable -- cgit v1.2.3-70-g09d2