vim-SimpleSmoothScroll icon indicating copy to clipboard operation
vim-SimpleSmoothScroll copied to clipboard

zz with smooth scroll

Open pablospe opened this issue 9 years ago • 3 comments

A possible improvement would be to apply the same smooth scrolling to the zz, zt, zb. How could this be implemented?

pablospe avatar Jun 13 '16 10:06 pablospe

I'm shooting from the hip here, but I think you would just need to add some nnoremap calls similar to the existing ones.

I'm open for a PR.

Kazark avatar Jun 13 '16 14:06 Kazark

Thanks! It is a bit more complicated than that because the zz could mean scroll down or up depending where you are located. The distance from the current line to the center of the screen is needed, and from there the direction.

pablospe avatar Jun 13 '16 20:06 pablospe

Okay, that's what I get for shooting from the hip. Still, that doesn't sound that hard; sounds like you have a good handle on what needs to happen. I'll let you know if I get around to working on this.

Kazark avatar Jun 15 '16 13:06 Kazark