Vim icon indicating copy to clipboard operation
Vim copied to clipboard

`L` and `H` need to respect Cursor Surrounding Lines

Open mrthebob opened this issue 1 year ago • 1 comments

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:

  1. Set Editor: Cursor Surrounding Lines to something obvious, like 7 or 10
  2. Open a document that extends beyond the bottom of the page.
  3. Press L in 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

mrthebob avatar Jan 19 '24 02:01 mrthebob

Duplicate of #4912

VoidAwake avatar Jan 31 '24 04:01 VoidAwake

Closing as duplicate of #4912

J-Fields avatar Jul 22 '24 15:07 J-Fields