4

Occasionally, I will press Ctrl-x and Ctrl-a to increment/decrement the highlighted number, and the opposite operation will happen.

This usually happens when I'm working with with registers (q). Could I possibly be setting up some sort of alias between the two commands? How do I fix it besides opening/closing vim?

5

Nevermind, the number I was incrementing was in a date time (like 2015-08-07) and I think vim was interpreting it as a negative integer.

D'oh.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.