From 489146b43e2f579cddf5d36b25abfea8ce6d8b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 25 Oct 2020 14:56:37 +0000 Subject: [PATCH] special indent for yaml files --- .vimrc.settings | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.vimrc.settings b/.vimrc.settings index 6ee1a2d3..79502d0d 100755 --- a/.vimrc.settings +++ b/.vimrc.settings @@ -50,6 +50,15 @@ augroup qf autocmd FileType qf set nobuflisted augroup END +augroup filetype_yaml + autocmd! + autocmd BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml foldmethod=indent + autocmd FileType yaml | + setlocal shiftwidth=2 | + setlocal softtabstop=2 | + setlocal tabstop=2 +augroup END + " vimdiff set diffopt+=iwhite set diffexpr=""