comfortable-motion.vim icon indicating copy to clipboard operation
comfortable-motion.vim copied to clipboard

support for horizontal scroll

Open hatelove85911 opened this issue 7 years ago • 1 comments

Is it possible to support horizontal scroll?

hatelove85911 avatar Aug 31 '17 14:08 hatelove85911

@hatelove85911 Yes, it is possible.

As a proof of concept, you can try this config:

let g:comfortable_motion_scroll_down_key = "zl"
let g:comfortable_motion_scroll_up_key = "zh"

We need to add another state variable for animation on the horizontal axis. It is also needed to make functions tick() and flick() more generic so that they can be used for the simulation on the both axes.

yuttie avatar Sep 03 '17 10:09 yuttie