From adfb704c1f1d5371bc41fde5a3419625fef40a1c Mon Sep 17 00:00:00 2001 From: "D. Ben Knoble" Date: Fri, 26 Jul 2024 11:07:56 -0400 Subject: [PATCH] vim: make Vue indent 2 spaces --- links/vim/after/ftplugin/vue.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 links/vim/after/ftplugin/vue.vim diff --git a/links/vim/after/ftplugin/vue.vim b/links/vim/after/ftplugin/vue.vim new file mode 100644 index 00000000..da79d58d --- /dev/null +++ b/links/vim/after/ftplugin/vue.vim @@ -0,0 +1,13 @@ +" Vim filetype plugin +" Language: Vue +" Maintainer: Ben Knoble + +" Indent two spaces +setlocal shiftwidth=2 softtabstop=2 + +let b:undo_ftplugin = bk#ftplugin#undo(#{ + \ opts: [ + \ 'shiftwidth', + \ 'softtabstop', + \ ], + \ })