vim: Change line up and change line down respect indentation (#28934)

When using 'c' with line-wise motions like j/k, operate like cc to fix
indentation issues.

Closes #28933 

Release Notes:

- `c j` and `c k` now respect indentation
This commit is contained in:
AidanV 2025-04-17 19:51:24 -07:00 committed by GitHub
parent f6d13645ce
commit 5f7189e5af
3 changed files with 30 additions and 1 deletions

View file

@ -14,3 +14,7 @@
{"Key":"c"}
{"Key":"j"}
{"Get":{"state":"The quick\nbrown fox\nˇ","mode":"Normal"}}
{"Put":{"state":"The quick\n ˇbrown fox\n jumps over"}}
{"Key":"c"}
{"Key":"j"}
{"Get":{"state":"The quick\n ˇ","mode":"Insert"}}

View file

@ -14,3 +14,7 @@
{"Key":"c"}
{"Key":"k"}
{"Get":{"state":"ˇ\nbrown fox\njumps over","mode":"Normal"}}
{"Put":{"state":"The quick\n brown fox\n ˇjumps over"}}
{"Key":"c"}
{"Key":"k"}
{"Get":{"state":"The quick\n ˇ","mode":"Insert"}}