What is the best way to do smooth scrolling in Vim?

后端 未结 10 1603
醉梦人生
醉梦人生 2021-01-30 03:01

The main scrolling commands in Vim are:

  1. Ctrl-B and Ctrl-F, as well as PageUp and PageDown scrol
10条回答
  •  温柔的废话
    2021-01-30 03:40

    I just found this plugin called "accelerated-smooth-scroll" ("Vim plugin for accelerated smooth scroll (mapping to /, /)") which can be for example used through Vundle by putting this line in your .vimrc:

    Plugin 'yonchu/accelerated-smooth-scroll'
    

    Then by restarting Vim and running the :PluginInstall command, then again restart Vim and use the (Ctrl+D) and (Ctrl+O) commands normally.

    Sadly, this plugin also moves the cursor instead of what I wanted: to just scroll the screen like the and commands.

提交回复
热议问题