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
Go to the first line of a series of non-wrapped lines of text, say something like:
voidfoobar() {
if (condition) {
value = a;
} else {
value = b;
}
}
Move cursor to somewhere in middle of the line, say column position 10
Staying in normal mode, press j to move down a line
Keep pressing j to keep moving down several lines
As soon as you hit a line that has fewer characters than where your cursor column position is, the column position gets reset to the end of the current line
What did you expect to happen:
Should behave exactly like j and k navigation for non-wrapped lines
When going up/down a line the cursor's column position should be restored to the column position when the up/down (j,k) navigation first occurred, unless the line is too short, in which case it should go to end of line
In the above example, the cursor position should stay at column 10 whenever possible
The text was updated successfully, but these errors were encountered:
There's an open PR for this (#1561), but it has some issues. The fundamental problem is that vscode doesn't expose wrapped line information to us. It might be fixable, but it'd be quite a bit of work.
The VSCodeVim team prioritizes issues based on reaction count.
BUG REPORT
Environment:
What happened:
j
andk
togj
andgk
respectively via:j
to move down a linej
to keep moving down several linesWhat did you expect to happen:
j
andk
navigation for non-wrapped linesj
,k
) navigation first occurred, unless the line is too short, in which case it should go to end of lineThe text was updated successfully, but these errors were encountered: