Help us shape the future of Go! Take the 2026 Go Developer Survey

yamlfmt

command module
v0.0.0-...-708bde1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

README

YAMLfmt

yamlfmt is a little Go binary that reads YAML from file(s) or standard input, formats it and then writes it to standard output.

Use in Editors

Vim

Use the following configuration in Vim, to create a "Fmt" command that formats your YAML.

au FileType yaml command! Fmt call YamlFmt(120)
let yaml_fmt = "yamlfmt /dev/stdin"
au FileType yaml let &l:formatprg=yaml_fmt

Documentation

Overview

yamlfmt formats YAML. It reads from standard input or any files given on the command line.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL