Increment decrement number under cursor?

York Zhao gtdplatform at gmail.com
Tue Sep 6 01:02:52 CEST 2011


Hi Mike,

Thanks for the "evil-numbers". I've just fixed a bug and have sent a
pull request at github.


York


On Sat, Sep 3, 2011 at 6:48 AM, Michael Markert
<markert.michael at googlemail.com> wrote:
> 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
>
> _______________________________________________
> implementations-list mailing list
> implementations-list at lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
>
>



More information about the implementations-list mailing list