Vim keep cursor location while scrolling

后端 未结 6 1240
北海茫月
北海茫月 2021-01-30 16:05

Is there a way to keep the cusror location off-screen in Vim / gVim while scrolling? Similar to many Windows editors.
I know about marks, and do use them. I also know the

6条回答
  •  梦谈多话
    2021-01-30 17:03

    The only similar behavior that I've found in Vim:

    zt or zENTER "scroll the screen down as far as possible without moving the cursor"

    zb "scroll as far up as possible".

    Ctrl+E "scroll one line down, if possible"

    Ctrl+Y"scroll one line up, if possible"

提交回复
热议问题