34917Re: [vim] Mapping with count
- Dec 4, 2002Charles E. Campbell wrote:
> On Tue, Dec 03, 2002 at 04:36:01AM +0100, kbosau@... wrote:Mappings cannot handle counts, nor registers, but user-defined
>>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>
> 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()
HTH --Benj Fisher
- << Previous post in topic Next post in topic >>