Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Bad Cursor motion

Open kurtbreish opened this issue 1 year ago • 1 comments

Describe the bug

Cursor motion for up and down "k & j" is not correct. If the line above or below has tab characters in it the cursor does not go straight down/up, it go somewhere unpredictable. This prevents the use of the repeat command "." with out first moving horizontally. Really slows down edits related to tab inserting or other repeated inserts/deletes

This works fine in VIM for Visual Studio, but VSCODE is not correct and really, really annoying. Easy to reproduce.

To Reproduce Enter something like the code below:

	#2 CpuBusHold = {Dev,Reg}; CPU_NCS = 0;
	#9 CPU_NWE = 0;
	#50 CPU_NWE = 1;
	#8 CPU_NCS = 1;
	@(posedge FpgaClk);	// resycn with cloc

In the above code there are preceding tabs (4 stops) before the "#" symbols. Place the cursor on the first "#", insert a tab character, move down a line and hit the repeat character '.' i.e.

"i(tab)(esc)j."

This has completely different behavior from VIM standalone and VIM for Visual Studio (and from every other VI editor I have ever used).

Expected behavior Work like every other implementation.

Screenshots Screen shots don't work for curser motion.

Yes I am on the latest VSCode and VSCodeVIM

kurtbreish avatar Apr 25 '24 12:04 kurtbreish

Can confirm when working with go code, which forces you to use tabs.

alarbada avatar Oct 02 '24 01:10 alarbada