From 09cc3b1f7845aa2396dbbdb5a8d516c415bb3b9e Mon Sep 17 00:00:00 2001 From: NiseVoid Date: Tue, 14 Jul 2020 11:50:05 +0200 Subject: [PATCH] Set tabs to 2 spaces for yaml --- nvim/init.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/init.vim b/nvim/init.vim index 16ac9ac..4e03520 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -59,6 +59,8 @@ set list listchars=trail:·,tab:»\ ,eol:¬ " Set indent settings set tabstop=4 shiftwidth=4 noexpandtab autocmd BufRead,BufNewFile *.py set tabstop=4 shiftwidth=4 noexpandtab +autocmd BufRead,BufNewFile *.yml set tabstop=2 shiftwidth=2 expandtab +autocmd BufRead,BufNewFile *.yaml set tabstop=2 shiftwidth=2 expandtab " Disable auto newlines set wrap