vim-smooth-scroll makes scrolling in Vim nice and smooth. Find yourself completely lost every time you use Ctrl-f
or Ctrl-b
? You might want to give this plugin a try.
Install using Pathogen, Vundle, Neobundle, or your favorite Vim package manager.
Map your favorite keys like below:
noremap <silent> <c-u> :call smooth_scroll#up(&scroll, 0, 2)<CR>
noremap <silent> <c-d> :call smooth_scroll#down(&scroll, 0, 2)<CR>
noremap <silent> <c-b> :call smooth_scroll#up(&scroll*2, 0, 4)<CR>
noremap <silent> <c-f> :call smooth_scroll#down(&scroll*2, 0, 4)<CR>
smooth_scroll#up
and smooth_scroll#down
both take the following 3 parameters. Customize it however you like