Conditional yaml formatting

This commit is contained in:
jon
2020-06-13 14:35:35 -05:00
parent 30f83d8db5
commit 04e28fa0d4

View File

@@ -87,6 +87,12 @@ nnoremap <S-Tab> :bprev<CR>
"" Opens the nnn window in a split "" Opens the nnn window in a split
"let g:nnn#layout = { 'left': '~30%' } " or right, up, down "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 <C-n> :NERDTreeToggle<CR> map <C-n> :NERDTreeToggle<CR>
"vim-jedi auto-select first, saves a keystroke "vim-jedi auto-select first, saves a keystroke