34919Re: [vim] Mapping with count
- Dec 4, 2002On Wednesday 04 December 2002 15:58, Jürgen Krämer wrote:
> Hi,Even worse
> 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>
> would move the cursor only by 21 characters, not 40.
map \F 3<right>
would move the cursor by 203 Chacacters, not 60.
- << Previous post in topic Next post in topic >>