Closed milesfrain closed 3 years ago
It looks like you're using inc-at-pt-incremental
instead of evil-numbers/inc-at-pt
which behaves as you expect.
Can you confirm this?
Indeed. Thanks for the troubleshooting help. Looks like I needed g+
, not g=
.
:n "g=" #'evil-numbers/inc-at-pt
:n "g-" #'evil-numbers/dec-at-pt
:v "g=" #'evil-numbers/inc-at-pt-incremental
:v "g-" #'evil-numbers/dec-at-pt-incremental
:v "g+" #'evil-numbers/inc-at-pt
@ideasman42 originally described this issue https://github.com/cofi/evil-numbers/issues/7, but it's still not working correctly on this fork. Instead of incrementing every number by 1, it increments each by the line number of the selection.
For example, starting with:
Then selecting the first column (normal mode cursor over 1,
Ctrl-v
,jjjj
), and incrementing (Ctrl-a
, org=
in doom emacs), results in:I'd expect this to behave the same as vim and produce: