You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When navigating vertically using, e.g. j and k, the cursor's horizontal position (column) isn't restored after navigating through a shorter line.
To Reproduce
Steps to reproduce the behavior:
Normal mode:
1) int variable1[*4]; // Cursor starts on "4"
2) char c[3]*; // Use "j" twice past this shorter line, cursor is moved to end of this line
3) int variable2[*6]; // Should end up on "6" (does in VIM on MING and Unix)
3') int varia*ble2[6]; // On VSCodeVim you end up here instead directly below the line 2's ";"
the cursor's column position was reset by navigating vertically but should have saved the "intended" column from earlier.
Expected behavior
The horizontal cursor position should be restored when navigating between lines of different lengths.
Native VIM behavior. See :help startofline: "cusor is kept in the same column (if possible)".
What I've Tried
Playing with wrapping like vim.foldfix:false, and set for sol and compatible didn't fix.
Describe the bug
When navigating vertically using, e.g. j and k, the cursor's horizontal position (column) isn't restored after navigating through a shorter line.
To Reproduce
Steps to reproduce the behavior:
Normal mode:
the cursor's column position was reset by navigating vertically but should have saved the "intended" column from earlier.
Expected behavior
The horizontal cursor position should be restored when navigating between lines of different lengths.
Native VIM behavior. See
:help startofline
: "cusor is kept in the same column (if possible)".What I've Tried
Playing with wrapping like
vim.foldfix:false
, andset
forsol
andcompatible
didn't fix.Workaround !!
Environment (please complete the following information):
Additional context
VIM which "set" setting maintains cursor horizontal character position when navigating up/down lines?
Related
gj
andgk
preservedesiredColumn
#5080 (failed)j
/k
in multi-cursor visual block mode incorrectly aligns blocks #4797gj
andgk
should not changedesiredColumn
#4441H
/M
/L
should respectstartofline
and not update the desired column whenstartofline
is false #4428gj
andgk
) #1323The text was updated successfully, but these errors were encountered: