Skip to content

tarekbecker/vim-yaml-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VIM YAML Formatter

Prerequisite

Python package pyyaml need to be installed.

pip install pyyaml

Installation

Using Vundle:

Plugin 'tarekbecker/vim-yaml-formatter'

Usage

Execute YAMLFormat to format the current buffer

:YAMLFormat

A range formatting is not supported.

Configuration

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
- item

yaml_formatter_indent_collection=1 can be used to indent the items:

name:
     - item
     - item
let g:yaml_formatter_indent_collection=1

About

Vim Plugin for YAML formatting

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published