VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.73k stars 1.31k forks source link

Bad Cursor motion #9004

Open kurtbreish opened 4 months ago

kurtbreish commented 4 months ago

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