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

34919Re: [vim] Mapping with count

Expand Messages
  • Michael Naumann
    Dec 4, 2002
    • 0 Attachment
      On Wednesday 04 December 2002 15:58, Jürgen Krämer wrote:
      > Hi,
      >
      > Charles E. Campbell wrote:
      > > On Tue, Dec 03, 2002 at 04:36:01AM +0100, kbosau@... wrote:
      > >
      > >>I'd like to create a normal mode mapping one
      > >>can control by a number that has to be typed
      > >>in prior to hitting the mapped key...
      > >
      > >
      > > ex. map \F <right>
      > > 20\F
      > >
      > > The problem is: you can't get ahold of the repeat number.
      > > Instead the mapping will be repeated as in this example,
      > > 20 times.
      >
      > another problem: the count is only applied to the first complete
      > command inside the right hand side of the mapping, e.g.
      >
      > map \F <right><right>
      > 20\F
      >
      > would move the cursor only by 21 characters, not 40.

      Even worse
      map \F 3<right>
      20\F

      would move the cursor by 203 Chacacters, not 60.

      - Michael
    • Show all 9 messages in this topic