From ed5ddf60ccaaeaf3ff526ba8267b489f21b94a5d Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 6 Aug 2022 14:20:28 +0800 Subject: [PATCH] add setup for javascript --- after/ftplugin/javascript.vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 after/ftplugin/javascript.vim diff --git a/after/ftplugin/javascript.vim b/after/ftplugin/javascript.vim new file mode 100644 index 0000000..c629428 --- /dev/null +++ b/after/ftplugin/javascript.vim @@ -0,0 +1,8 @@ +" Disable inserting comment leader after hitting o or O or +set formatoptions-=o +set formatoptions-=r + +set tabstop=2 " number of visual spaces per TAB +set softtabstop=2 " number of spaces in tab when editing +set shiftwidth=2 " number of spaces to use for autoindent +set expandtab " expand tab to spaces so that tabs are spaces