Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

VimDiff seems to be a useful tool, but I can't seem to find a way of quickly and efficiently scrolling horizontally when word-wrap is set to "off". I am currently using "zh" and "zl" but they only work per click.

I'd rather not use sublime for diffing, but I just might have to!

share|improve this question

migrated from stackoverflow.com Oct 30 '12 at 19:52

This question came from our site for professional and enthusiast programmers.

There are other options than just zh and zl; check out zH and zL to jump half screen at a time, or zs and ze to move to the start and end of the line, respectively.

Even better, if your limitation is worst during when using vim -d: set the windows to all scroll together with :scrollbind (check out all the options with :help scrollbind).

Curious: is it work that does not let you use word wrapping, and why? :)

I don't know if this would work, but :setglobal textwidth=foo (or :setlocal) might also be useful, given your limitations ...

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .