Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate Insert mode jump back to last edit row #9488

Open
saschafuchs opened this issue Feb 17, 2025 · 7 comments
Open

Activate Insert mode jump back to last edit row #9488

saschafuchs opened this issue Feb 17, 2025 · 7 comments

Comments

@saschafuchs
Copy link

Describe the bug
In the current version (1.29.0), the cursor always jumps back to the last position in Insert mode. This can be quite frustrating, especially if you’re used to pressing I or A and expecting to start editing at that position. Now, however, it might take you hundreds of lines away from where you intended to make changes.

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a line and enter Insert mode.
  2. Press ESC.
  3. Move a few lines down and start Insert mode again.
  4. The cursor jumps back to the last position from step 1.

Expected behavior
When I enter Insert mode, I expect to start editing exactly at the current cursor position.

For now, I have downgraded to 1.28.1, which restores the expected behavior.

  • Extension (VsCodeVim) version: 1.29.0
    Version: 0.45.11
    VSCode Version: 1.96.2
    Commit: f5f18731406b73244e0558ee7716d77c8096d150
    Date: 2025-02-07T09:43:58.555Z
    Electron: 32.2.6
    Chromium: 128.0.6613.186
    Node.js: 20.18.1
    V8: 12.8.374.38-electron.0
    OS: Darwin arm64 24.3.0
@WillmerG
Copy link

This huge mistake doesn't allow me to work.

@diegodorado
Copy link

struggling with this too! it wasnt happening before

@basicBrogrammer
Copy link

Same!!! How do i downgrade? (I'll google it but figured i might get a quicker answer from y'all :D )

@urbanspr1nter
Copy link

If you right click on the extension, you can choose to install a specific version:

Image

Thank goodness I found this bug report. I thought I was going crazy for a few days now. I wonder why I just started to notice it though... I use this extension everyday... 🤷

@urbanspr1nter
Copy link

actually, after trying 1.28 for a bit, I don't think this fixes the issue :( something feels messed up.

@mavropalias
Copy link

mavropalias commented Feb 20, 2025

I downgraded all the way to VSCodeVim 1.26.2 and I still have this issue.

Btw, the issue only starts happenning after saving a file that I've edited.

If I open a file and start going in & out of insert mode and making changes, it all works fine. It's the moment I save the file that the cursor starts jumping to my last edit when I try to insert/append.

I disabled all other extension that have been updated recently (in case there was a clash on file save, or something), but made no difference.

My VSC version:

Version: 1.97.2
Commit: e54c774e0add60467559eb0d1e229c6452cf8447
Date: 2025-02-12T23:20:35.343Z (1 wk ago)
Electron: 32.2.7
ElectronBuildId: 10982180
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 23.6.0

@saschafuchs
Copy link
Author

It is and remains annoying as soon as you switch from insert mode to normal mode and then jump to the next position. Switching to insert mode, then back to the last line when you switched from insert to normal mode.

I had the problem before but it had died down until a few weeks ago and since then it hasn't really been usable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants