From dd52249a17d91eb1efb37572e950a5c917585498 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 17 Jan 2021 23:50:49 +0800 Subject: [PATCH] Use two spaces per tab for YAML --- after/ftplugin/yaml.vim | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 after/ftplugin/yaml.vim diff --git a/after/ftplugin/yaml.vim b/after/ftplugin/yaml.vim new file mode 100644 index 0000000..46e9ccd --- /dev/null +++ b/after/ftplugin/yaml.vim @@ -0,0 +1,4 @@ +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