]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(yaml): do not re-indent when commenting out lines
authorChristian Brabandt <cb@256bit.org>
Thu, 15 Aug 2024 20:29:47 +0000 (22:29 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 15 Aug 2024 20:29:47 +0000 (22:29 +0200)
commitc6ed816761f44da92d8c61f5ea6cb7fdbb45fac5
tree93836771a3409c5ffe21144ff28233305e79a536
parent0a6e57b09bc8c76691b367a5babfb79b31b770e8
runtime(yaml): do not re-indent when commenting out lines

It's a personal annoyance for me. I have to edit yaml files on a lot of
customer environments and whenever you type '#' at the start of the
line, the commented line will be indented by whatever indent the
previous line had.

I hate this seriously, because it makes un-commenting painful. So let's
fix this. But instead of messing with the indent function, let's just
remove the '0#' from cinkeys, so that Vim won't perform re-indenting
when commenting out such a yaml file.

closes: #15494

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