momodalo / vimtouch

vimtouch
Apache License 2.0
349 stars 71 forks source link

Scroll by visual line? #46

Open bk322 opened 11 years ago

bk322 commented 11 years ago

I use vimtouch to read notebooks, and in notebooks -- I often have long lines. Vimtouch scrolls by a whole line only -- so if I have a line longer then the screen (I read from phone) -- I can't see the whole thing at all.

What do I put in vimrc to make vimtouch scroll (with swipe) by visual lines, not by phisical lines?

momodalo commented 11 years ago

VIM HATES LONG LINES, didn't you know? http://stackoverflow.com/questions/8369021/in-vim-how-to-scroll-continuously-by-screen-lines-when-wrapping-is-enabled

Just kidding, I am thinking that are there any way to reference "gj", "gk", "Ctrl+E", "Ctrl+Y" to workaround this. It might not easy and I don't want to add feature to vim.

momodalo commented 11 years ago

I made a workaround by using gj gk, but still not perfect. if you think it's good enough to solve your problem, please close this. If not, left it here and I will keep in mind. https://github.com/momodalo/vimtouch/commit/7834c006a2f8296cf2bb3ee08512b5e81928017d

momodalo commented 11 years ago

I revert this change because the scrolling performance. Need to find a better solution.

bk322 commented 11 years ago

Good luck! Vim is especially great on tablets/smartphone -- where You most often need to be able to edit effectively. But exactly with tablets/smartphone long lines issue is important.

On Thu, Apr 25, 2013 at 5:42 AM, David Tao notifications@github.com wrote:

I revert this change because the scrolling performance. Need to find a better solution.

— Reply to this email directly or view it on GitHubhttps://github.com/momodalo/vimtouch/issues/46#issuecomment-16984436 .