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

34915Re: [vim] Mapping with count

Expand Messages
  • Charles E. Campbell
    Dec 4, 2002
    • 0 Attachment
      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.

      You can grab the repeat value with calls to functions:

      :20 call SomeFunction()

      Regards,
      C Campbell

      --
      Charles E Campbell, Jr, PhD _ __ __
      Goddard Space Flight Center / /_/\_\_/ /
      cec@... /_/ \/_//_/
      PGP public key: http://www.erols.com/astronaut/pgp.html
    • Show all 9 messages in this topic