]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(yaml): disable multiline_scalar detection by default
authorChristian Brabandt <cb@256bit.org>
Thu, 29 Feb 2024 16:23:51 +0000 (17:23 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 29 Feb 2024 16:28:07 +0000 (17:28 +0100)
commitb4eb3f1e44896b12fdfa3885a78c6eaa181eaeff
treec24d7395e257c8afd453d55e65b0e15453426036
parent55f8bba73be5f9c3a5a4d0d6c5f56e65f2c7d3fc
runtime(yaml): disable multiline_scalar detection by default

There have been many complaints about Yaml indenting too much, because
it considers values to be multi-line by default, which leads to
unintended indenting for (apparently most) users.

So let's hide this feature behind the new feature flag, keep it
simple and prefer single line value key pairs by default.

If you want the old behaviour, set the following value: >

  :let g:yaml_indent_multiline_scalar = 1

If not set, it will indent the same as the previous line.

closes #13845

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/indent.txt
runtime/doc/tags
runtime/indent/yaml.vim