1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

vim: attempt to improve yaml auto-indent

Hopefully this should prevent auto-indent when hitting <CR> after
inserting a :. Whether it works or not, we'll have to see.

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
Joe Groocock 2020-08-10 22:02:24 +01:00
parent 35d08af7ce
commit 20f48e25b4
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -303,6 +303,7 @@ cmap w!! w !sudo tee > /dev/null %
" Unmap ex-mode " Unmap ex-mode
map Q <nop> map Q <nop>
autocmd FileType markdown setlocal ts=2 sts=2 sw=2 et autocmd FileType markdown setlocal ts=2 sts=2 sw=2 et
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 et autocmd FileType yaml setlocal ts=2 sts=2 sw=2 et indentkeys-=<:>
autocmd FileType gitcommit setlocal cc=72 et sw=4 autocmd FileType gitcommit setlocal cc=72 et sw=4