smoothPageScroll is a Vim extension for smoother and precise page scrolling.
This fantastic script also emulates one of Vim's normal < PageDown > or < PageUp > behaviors, displaying the first or last 2 lines from the previous screen after scrolling, unless it reaches first or last line or shows 3 lines or less. It requires Vim to function properly and can be installed by simply copying the script into the plugin directory.
You can call the script directly by typing ":call SmoothPageScrollDown()" to scroll down and ":call SmoothPageScrollUp()" to scroll up. Alternatively, you can remap < PageDown > and < PageUp > keys by typing "map < PageDown > :call SmoothPageScrollDown() < CR >" and "map < PageUp > :call SmoothPageScrollUp() < CR >", respectively.
The developer suggests remapping the < Space > and < S-Space > keys since they are not useful in non-insert mode. However, this may not work on some platforms, so users will have to opt for other keys such as < M-Space >, < C-Space > or others.
If you find the scrolling speed too fast, you can tailor it to your preference by adding g:smooth_page_scroll_delay in your [._]vimrc. For instance, "let g:smooth_page_scroll_delay = 5" would delay the scrolling speed by an extra 5 milliseconds per each line.
This release comes with added functions to delay scroll speed and other minor bug fixes that improve user experience. SmoothPageScroll is an incredible Vim plugin that any serious Vim user should add to their toolkit immediately. It makes scrolling much more enjoyable and seamless.
Version 0.20: N/A