terryma / vim-smooth-scroll

Make scrolling in Vim more pleasant
312 stars 36 forks source link

Could it be possible to give float values as input? #20

Open blasco opened 4 years ago

blasco commented 4 years ago

Right now we can use as input the "velocity", but I would like it to be between 1 and 2. Would it be possible to update the plugin so it can use a float value?

noremap :call smooth_scroll#up(&scroll, 0, 1) noremap :call smooth_scroll#down(&scroll, 0, 1)

This would be the ideal case for finer control:

noremap :call smooth_scroll#up(&scroll, 0, 1.3) noremap :call smooth_scroll#down(&scroll, 0, 1.3)

Any guidance on how this could be achieved would be much appreciated, I could latter create the PR