Questions tagged [filetype-yaml]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
99 views

Is there a plugin to support simple navigation in yaml?

I've been unable to find plugin support for simple navigation to "next/previous with same indentation" (e.g [[ and ]]) in yaml. I have folding supported, but I'd like to navigate without ...
1
vote
0answers
932 views

Trouble sourcing YAML syntax highlighting

I'm doing some Ansible work (on RHEL 8), so I want the YAML configs for vim. I have a yaml.vim file containing the syntax/etc, and a ~/.vimrc file: autocmd BufNewFile,BufRead *.yaml,*.yml so ~/.vim/...
2
votes
2answers
527 views

How to autoformat a multi-line string

I want to format a multiline string according to a textwidth of 32. group: - normal: scalar - multiline: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor ...
2
votes
2answers
3k views

How do I make the yaml indent not indent lists?

OK so I would like to change the way that my yaml gets indented. Right now my vim indents a yaml list like this: list: - this - is - a list dict: this: is a dict I would like it to indent ...
0
votes
0answers
597 views

Working with yaml literal-blocks in vim?

I'm trying to work with indenting yaml in vim, and I'm trying to convert it to JSON. Say I have a file like this: --- foo: bar baz: - qux - quxx corge: null grault: 1 garply: true ...
9
votes
3answers
933 views

How to show the current location in a yaml hierarchy

When working with larger or rather deeply nested yaml files (Hi Rails), it happens quickly that I loose sight of where I am with regards to the indentation hierarchy of the file. A very simple ...