From 04e28fa0d47d11812e86e586b20402a39080b137 Mon Sep 17 00:00:00 2001 From: jon Date: Sat, 13 Jun 2020 14:35:35 -0500 Subject: [PATCH] Conditional yaml formatting --- vim/.vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index f418dd5..2183f88 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -87,6 +87,12 @@ nnoremap :bprev "" Opens the nnn window in a split "let g:nnn#layout = { 'left': '~30%' } " or right, up, down +" Fix auto-indentation for YAML files +augroup yaml_fix + autocmd! + autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab indentkeys-=0# indentkeys-=<:> +augroup END + map :NERDTreeToggle "vim-jedi auto-select first, saves a keystroke