Vscode-neovim: Split window cursor retains its original position

Created on 12 Oct 2020  路  10Comments  路  Source: asvetliakov/vscode-neovim

when using vscode with split editors, a mouse click on the text in an inactive editor pane will cause the cursor to jump to the last position of the cursor for that file. How do I get the cursor to remain exactly where I clicked

bug

Most helpful comment

I have exactly the same problem: when in insert mode, if I switch to another panel with the mouse the cursor goes to the last normal mode position in that pane.

I tried with all extensions disabled except for Neovim, with Mouse selection start visual mode disabled. I have been able to reproduce this issue with NVIM v0.5.0-672-gd8e6a0396 and NVIM v0.5.0-808-gee3acef38, but only with the Neovim extension version being 0.0.61 or higher.

All 10 comments

Can't reproduce, I think that the problem caused by your plugins or settings.

Here is a gif of the cursor behaviour
http://g.recordit.co/6w1kyaobc1.gif
neovim_cursor

Seems that issue cause by your extensions or settings.

my vscode extensions https://gist.github.com/ozimos/93ac4fee174511a845897c2b8188bcb0

I have removed all extensions except neovim and settings sync, yet the issue persists

Try to remove all settings / Neovim settings to find out what causes the problem.

I am on NVIM v0.5.0-91109ff. I am not using any plugins. I have removed my init.vim but the problem persists

This is also happening to me. The offending plugin is Prettier which unfortunately is essential to my workflow. Shame because I really thought this plugin was the answer to my VSCode vim woes.

Anyone with this problem has Mouse selection start visual mode turned on? If so try to turn it off

I also experience this behavior, I can confirm that before using neovim dev versions this didn't happened, also disabling Mouse selection start visual mode does not solved the issue, if you are in insert mode and click (or Ctrl+) your way out of the focused panel the cursor jumps around to the last known NORMAL mode position of the caret

I have exactly the same problem: when in insert mode, if I switch to another panel with the mouse the cursor goes to the last normal mode position in that pane.

I tried with all extensions disabled except for Neovim, with Mouse selection start visual mode disabled. I have been able to reproduce this issue with NVIM v0.5.0-672-gd8e6a0396 and NVIM v0.5.0-808-gee3acef38, but only with the Neovim extension version being 0.0.61 or higher.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Liquidmantis picture Liquidmantis  路  3Comments

hholst80 picture hholst80  路  3Comments

kkorus picture kkorus  路  4Comments

RAbraham picture RAbraham  路  4Comments

joshua7v picture joshua7v  路  4Comments