Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim for VSCode does not work correctly occasionally for moving cursor to previous or next position (ctrl + i / o)

One of my most beloved features in Vim is using ctrl + o for moving to recent previous positions, and ctrl + i to restore (moving forward) the cursor.

For some reason in my VSCode this would not work correctly all the time. Sometimes the cursor jumps to a totally wrong position, that I might have visited before, but seems totally random.

I'm wondering does anyone else have experienced this before, is this maybe a setting? I'm running on vscodevim 1.23.2 which seems to be the latest.

Thank you

like image 938
supersize Avatar asked Oct 22 '25 00:10

supersize


1 Answers

For anyone coming across this, this seems to be a known problem discussed in the issues section of the repo

One possible workaround is to override the keybindings to use VSCodes own going forward/backward by this keybinding:

{
    "key": "ctrl+o",
    "command": "workbench.action.navigateBack"
},
{
    "key": "ctrl+i",
    "command": "workbench.action.navigateForward"
},

this works well after a short testing.

like image 62
supersize Avatar answered Oct 24 '25 23:10

supersize



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!