Python package pyyaml need to be installed.
pip install pyyamlUsing Vundle:
Plugin 'tarekbecker/vim-yaml-formatter'Execute YAMLFormat to format the current buffer
:YAMLFormatA range formatting is not supported.
VIM's configuration tabstop determines the number of spaces used for
indention.
Per default collection items have the same indention level as their parent:
name:
- item
- itemyaml_formatter_indent_collection=1 can be used to indent the items:
name:
- item
- itemlet g:yaml_formatter_indent_collection=1