Re: [hackers] [PATCH][vis] Change op_put to repeat put operation count times

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Thu, 30 Jul 2015 21:14:06 +0200

On Thu, Jul 30, 2015 at 06:51:21PM +0200, Marc André Tanner wrote:
> On Wed, Jul 29, 2015 at 08:52:07PM +0200, Silvan Jegen wrote:
> > This is the quick-and-dirty way to implement a feature I miss from Vim.
>
> Thanks. Yes the count/repetition code needs an overhaul. I'm not sure
> whether it makes sense to move it into the operator implementation
> themselves though. Feels wrong. Also there are multiple "operators" which
> will need it. For example when . repeats the last insertion a count

Yes, that is what I thought as well. If we put it into the operators we
will have to duplicate the repetition code for each operator. Ideally,
we would not have to do that.

I was not sure if you had decided on a way to do it properly yet that is
why I sent the patch as a stop-gap solution. If I figure out a nicer way
I will send out another email to gather feedback.


Cheers,

Silvan
Received on Thu Jul 30 2015 - 21:14:06 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 30 2015 - 21:24:10 CEST