Loading ...
Sorry, an error occurred while loading the content.

Re: How to horizontal-scroll (zl) by pressing and holding zl

Expand Messages
  • Benji Fisher
    ... Two suggestions: (1) Use g$ (as suggested by DF) and the press and hold l with no mappings. (2) :nmap zl and then hold and press (or your choice
    Message 1 of 3 , Jul 31 8:17 PM
    • 0 Attachment
      On Mon, Jul 26, 2004 at 10:06:01PM -0400, David Fishburn wrote:
      >
      >
      > > -----Original Message-----
      > > From: Suresh Govindachar [mailto:sgovindachar@...]
      > > Sent: Monday, July 26, 2004 1:50 PM
      > > To: vim@...
      > > Subject: How to horizontal-scroll (zl) by pressing and holding zl
      > >
      > > Hello,
      > >
      > > My guioptions equals a (no toolbar, no menus, no scrollbar etc.).
      > >
      > > Each time I press z and l, there is a horizontal scroll of
      > > one character. However, pressing and holding z and l does
      > > not work to horizontally scroll. Is there a way to get this
      > > to work? If not, any suggestions for doing horizontal scroll
      > > using the keyboard?
      > >
      > > Here's something I am thinking of trying:
      > >
      > > 1) set sidescroll to 1
      > > 2) map zl to make the cursor jump to rightmost
      > > visible character [HOW?]
      > > 3) continue scrolling with l
      > >
      > > If (2) cannot be done, then I'll set sidescrolloff to a large
      > > number. (But with sidescrolloff being a large number,
      > > entering text is somewhat like typing on a typewriter with
      > > its carriage moving to the left! -- something that is worse
      > > than the horizontal scrolling problem it partially solves!)
      >
      >
      > I can at least answer this one:
      > > 2) map zl to make the cursor jump to rightmost
      > > visible character [HOW?]
      >
      > g$

      Two suggestions:

      (1) Use g$ (as suggested by DF) and the press and hold l with no
      mappings.

      (2) :nmap <F5> zl
      and then hold and press <F5> (or your choice of another key).

      HTH --Benji Fisher
    Your message has been successfully submitted and would be delivered to recipients shortly.