Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miekg/yamlfmt
Format YAML
https://github.com/miekg/yamlfmt
fmt go golang yaml
Last synced: about 1 month ago
JSON representation
Format YAML
- Host: GitHub
- URL: https://github.com/miekg/yamlfmt
- Owner: miekg
- License: apache-2.0
- Created: 2019-03-25T14:23:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-17T06:57:26.000Z (over 4 years ago)
- Last Synced: 2024-08-02T02:14:11.234Z (3 months ago)
- Topics: fmt, go, golang, yaml
- Language: Go
- Size: 12.7 KB
- Stars: 21
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.
~~~ viml
au FileType yaml command! Fmt call YamlFmt(120)
let yaml_fmt = "yamlfmt /dev/stdin"
au FileType yaml let &l:formatprg=yaml_fmt
~~~