Vim
Vim copied to clipboard
`L` and `H` need to respect Cursor Surrounding Lines
Describe the bug
For the purposes of scrolling (via j/k), Cursor Surrounding Lines seems to be respected. But when jumping to the top or bottom via L / H, the scrolloff (Editor: Cursor Surrounding Lines) is not respected, and the cursor goes all the way to the top or bottom.
It would be great if this were addressed, so that by pressing L, the cursor is placed X lines above the bottom of the window, based on the scrolloff/Cursor Surrounding Lines.
To Reproduce Steps to reproduce the behavior:
- Set Editor: Cursor Surrounding Lines to something obvious, like 7 or 10
- Open a document that extends beyond the bottom of the page.
- Press
Lin normal mode
Expected behavior The cursor should jump to the bottom of the page, offset by the number of lines indicated in Cursor Surrounding Lines
Environment (please complete the following information):
- Extension (VsCodeVim) version: latest
- VSCode version: latest
- OS: MacOS
Duplicate of #4912
Closing as duplicate of #4912