Increment decrement number under cursor?

Antono Vasiljev self at antono.info
Sat Aug 27 04:41:25 CEST 2011


> Because I wanted to improve my own inc/dec function for a while I took
> the afternoon and went for vim emulation. Except that it keeps the width
> in binary (but that looks like a vim bug).
> 
> Behold:
> https://gist.github.com/1161129
> 
> It's not exactly pretty and there's a function waiting to jump out but
> according to my tests it works as its vim counterpart does.
> 
> So please test it and give me feedback :)

One difference i found: it does not increment numbers
at end of word like vim does:

my<cur>word12

should increment to myword13

Anyway, thank you for your snippet.
Probably you can share it as evil-incdecr?


-- 
http://antono.info/
http://twitter.com/antono
http://github.com/antono



More information about the implementations-list mailing list