special indent for yaml files

This commit is contained in:
Cyryl Płotnicki 2020-10-25 14:56:37 +00:00
parent d6d14bd4f7
commit 489146b43e

View file

@ -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=""