I had the following piece of Markdown text that I wanted to edit:
* 2-6 for a moka pot
* 7-10 for a drip machine
* 5-12 for a pour-over
When I had the cursor over the number 6
in the first bullet point, pressing Ctrl-A should “Add [count]
to the number or alphabetic character at or after the cursor”. Instead of giving 7
, Vim decreased the number from 6
to 5
. When I tried to decrease the number using Ctrl-X, it incremented instead. It was like both commands were doing the opposite of what they should.
I checked to see if some key-mapping was over-writing Vim’s defaults but running both :map <C-A>
and :nmap <C-A>
printed
No mapping found
Ditto for C-X
. What’s going on?