Questions tagged [filetype-yaml]

Questions about the yaml file type.

Filter by
Sorted by
Tagged with
1 vote
0 answers

How to use different comment string for yaml blocks inside markdown files?

Many markdown implementations allow for a leading yaml configuration block like so: --- title: "My title" date: 2023-12-29 --- ## Heading Some markdown text With the vim commentary plugin,...
joelostblom's user avatar
2 votes
2 answers

Additional filetypes for different types of yaml files

Is it possible to create additional subcategories of filetypes? For example, it would be great if (neo)vim could pick up that the yaml file I'm editing is acutally a Kubernetes yaml file and set the ...
moo's user avatar
  • 155
0 votes
0 answers

YAML / YML unwanted auto-formatting

YAML / YML unwanted auto-formatting The last days I made some configuration improvements of my vim environment, e.g. I installed vim-polyglot and coc and removed duplicated plugins within my vim-plug ...
abu_bua's user avatar
  • 133
1 vote
2 answers

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 ...
Ovesh's user avatar
  • 113
1 vote
0 answers

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/...
Gary's user avatar
  • 11
2 votes
2 answers

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 ...
user8162's user avatar
  • 123
4 votes
2 answers

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 ...
Benjamin Hammer Nørgaard's user avatar
1 vote
0 answers

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 ...
leeand00's user avatar
  • 3,579
10 votes
3 answers

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 ...
Benjamin Reitzammer's user avatar