1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
set colorcolumn=80 set textwidth=80 let g:yaml_schema = "pyyaml" function! YamlFix() if(match(getline(v:lnum), ':$') > -1) return -1 elseif(match(getline(v:lnum), '^[^ ].*:$\|^\s*\.\.\.\|^\s*---\') > -1) return 0 else return GetYAMLIndent(v:lnum) endif endfunction setlocal indentexpr=YamlFix()