Increment decrement number under cursor?
Antono Vasiljev
self at antono.info
Sat Sep 3 05:01:09 CEST 2011
On Fri, 02 Sep 2011 06:24:05 +0200, Michael Markert <markert.michael at googlemail.com> wrote:
> > One difference i found: it does not increment numbers
> > at end of word like vim does:
>
> This works now.
>
> > Probably you can share it as evil-incdecr?
>
> No, but as evil-numbers: https://github.com/cofi/evil-numbers
Great name :)
> So please test and have fun! :)
It only worked for me if defined like this:
-(define-key 'evil-normal-state-map (kbd "C-c +") 'evil-numbers/inc-at-pt)
-(define-key 'evil-normal-state-map (kbd "C-c -") 'evil-numbers/dec-at-pt)
+(define-key evil-normal-state-map (kbd "C-c +") 'evil-numbers/inc-at-pt)
+(define-key evil-normal-state-map (kbd "C-c -") 'evil-numbers/dec-at-pt)
It really works. Thank you for great plugin!
--
http://antono.info/
http://twitter.com/antono
http://github.com/antono
More information about the implementations-list
mailing list