psliwka / vim-smoothie

Smooth scrolling for Vim done right🥤
MIT License
988 stars 27 forks source link

Support for mapping of ctrl+f etc. #24

Closed BStephenBB closed 3 years ago

BStephenBB commented 3 years ago

Is there a way to map something to ctrl+f (and all the other scroll commands) so that it still smooth scrolls?

Currently if I manually input ctrl+f (or any other scroll motion) I get the smooth scrolling behavior, but when I try to add some mappings, ie:

 " use leader d to scroll down a page
nnoremap <leader>d <C-F>
 " use leader u to scroll up a page
nnoremap <leader>u <C-B>

I no longer get smooth scrolling when using my mapping.

subnut commented 3 years ago

Use nmap instead of nnoremap

Please close the issue.

BStephenBB commented 3 years ago

Ah, right 🤦 Thanks!