From 3923fb230c93a22db7f0a37ac79c8867232c73d4 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 13 Jan 2020 15:51:16 +0100 Subject: [PATCH] [ADD][VIM] YAML filetype configuration --- vim/.vim/after/ftplugin/yaml.vim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 vim/.vim/after/ftplugin/yaml.vim diff --git a/vim/.vim/after/ftplugin/yaml.vim b/vim/.vim/after/ftplugin/yaml.vim new file mode 100644 index 0000000..13b37f2 --- /dev/null +++ b/vim/.vim/after/ftplugin/yaml.vim @@ -0,0 +1,6 @@ +" Create the `b:undo_ftplugin` variable if it doesn't exist +call ftplugined#check_undo_ft() + +" Use a small indentation value on YAML files +setlocal shiftwidth=2 +let b:undo_ftplugin.='|setlocal shiftwidth<'