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

From: Marc André Tanner <mat_AT_brain-dump.org>
Date: Thu, 6 Aug 2015 15:17:57 +0200

On Thu, Jul 30, 2015 at 09:14:06PM +0200, Silvan Jegen wrote:
> 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.

Turns out this is not that simple. I went with your approach for now.
gp and gP should now also be recognized, hope it works as expected.

Thanks!
-- 
 Marc André Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0
Received on Thu Aug 06 2015 - 15:17:57 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 06 2015 - 15:24:11 CEST