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

34917Re: [vim] Mapping with count

Expand Messages
  • Benji Fisher
    Dec 4, 2002
      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.
      >
      > You can grab the repeat value with calls to functions:
      >
      > :20 call SomeFunction()

      Mappings cannot handle counts, nor registers, but user-defined
      commands can.

      :help :command
      /Range handling
      /Special cases

      HTH --Benj Fisher
    • Show all 9 messages in this topic