Increment decrement number under cursor?
Michael Markert
markert.michael at googlemail.com
Sat Sep 3 12:48:53 CEST 2011
On 3 Sep 2011, Antono Vasiljev wrote:
> 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 :)
Thought so, too. :)
>> 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)
Oh, stupid mistake. Thanks for catching! Fixed in 6c6441e3.
> It really works. Thank you for great plugin!
Great :) Because of your 'plugin' cue I edited the emacswiki page for
evil[1] and added Tim's surround and this plugin.
Michael
Footnotes:
[1] http://www.emacswiki.org/emacs/Evil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : https://lists.ourproject.org/pipermail/implementations-list/attachments/20110903/9abf94ea/attachment.pgp
More information about the implementations-list
mailing list