Describe the bug
Sometimes, the vim extension gets into a state where using d-d to delete a line causes the cursor to jump seemingly randomly in the file. Subsequent d-d commands continue this behavior until the file is closed and reopened.
To Reproduce
Press d-d to delete a line in an open file. Sometimes, it takes subsequent presses to trigger the bug, e.g. d-d-d to delete 2 lines.
Expected behavior
It should perform as it does in vim and delete the line without moving the cursor.
Environment (please complete the following information):
this is amazingly disturbing... it actually renders the vim extension unusable.
also happening in this environment:
I guess it's a bug caused by commits from v1.0.5.
I have tried every version from v1.0.0 to v1.8.1 one by one and found v1.0.4 is fine,
also found that the later the version, the more easily the cursor is faulty.
To Reproduce:
two ways:
Environment:
2019.06.27 update:
It鈥檚 been 5 days since I used v1.0.4, and its cursor is occasionally fail, I mean it's quite occasional.
In addition, I also found a gopls(https://github.com/golang/go/issues/31937) related problem, but I don't know if it has anything to do with it.
I've noticed that this seems to happen for me when I have a split where both panes are showing the same file, and the cursors are in different locations. The cursor jumps usually results in the cursor in one pane moving to the location of the cursor in the other pane.
This only happens when working in a :vsplit file. I've noticed this same random behaviour also when pressing
It basicly makes :vsplit mode useless to work in.
Vscode:
Version: 1.36.1
Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529
Date: 2019-07-08T22:55:08.091Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 5.0.0-20-generic
Vim:
Version: 1.8.2
I also was encountering this and was about to file an issue before finding this thread. Here are my steps to reproduce and my system information if that helps:
1) Install the VIM emulation plugin.
2) Open two panes open with the same file.
3) Cut a line from the file (dd or Command-X).
4) Try to navigate (arrow keys or hjkl), the cursor will jump to the line above wherever the cursor is in the other pane.
I also am attaching a video showing what it looks like.
vscodevim-issue-#3804.mov.zip
This is quite frustrating indeed. It still happend on:
At least now I understand that it happens only in :vsplit mode
PS: thumbs up for this awesome and extensive extension! I was amazed to see that even commands like compl-whole-line, text-objects and surround were available 馃憤
Affecting me as well. Seems to happen mostly in split mode; will cease for some time if I close all tabs and reopen them.
VS Code:
vscodevim:
It happens very often to me. It is nearly impossible to use the VIM extension because of this. (Is there any alternative? Is there some fork where someone has fixed this?)
It happens very often to me. It is nearly impossible to use the VIM extension because of this. (Is there any alternative? Is there some fork where someone has fixed this?)
It seems some people are on the case in this isse #3713 which I assume is related or the same error.
Closing as a duplicate of #3713
Most helpful comment
I guess it's a bug caused by commits from v1.0.5.
I have tried every version from v1.0.0 to v1.8.1 one by one and found v1.0.4 is fine,
also found that the later the version, the more easily the cursor is faulty.
To Reproduce:
two ways:
Environment:
2019.06.27 update:
It鈥檚 been 5 days since I used v1.0.4, and its cursor is occasionally fail, I mean it's quite occasional.
In addition, I also found a gopls(https://github.com/golang/go/issues/31937) related problem, but I don't know if it has anything to do with it.