Jonathan.Brink
Jonathan.Brink

Reputation: 25423

VSCode + Neovim Cursor Position Goes Off-Screen While Scrolling By Line (ctrl-e)

While using the VSCode Neovim plugin I've noticed a difference in how the cursor position is handled while vertically scrolling by line with ctrl+e.

In stand-alone Neovim/Vim, as the window scrolls the cursor is advanced if it is about to go off-screen, staying at the top of the window:

the cursor stays within the window while vertical-scrolling in Neovim

But in VSCode + Neovim the cursor stays put, going off-screen. Once this happens, pressing a movement key like j will cause the window to jump back to the original cursor location, which can be jarring:

the cursor stays put, going off-screen, while vertical-scrolling in VSCode + Neovim

Is it possible to have the VSCode + Neovim experience match the stand-alone Neovim experience while scrolling with regard to cursor position?

I would think it should be possible, because the cursor is updated when page-scrolling with ctrl+d:

the cursor is correctly advanced while page-scrolling in VSCode + Neovim

Upvotes: 0

Views: 103

Answers (0)

Related Questions