4 ms·
Even better you don't have to be with the cursor on the number you want to increment or decrement with Ctrl-A and Ctrl-X. It will work with the next number to t
by h43z 8y ago
Even better you don't have to be with the cursor on the number you want to increment or decrement with Ctrl-A and Ctrl-X. It will work with the next number to the right of the cursor.
The same goes for ci' or ci".
a = 'foo' // imagine the cursor on the letter a
Executing ci'bar will change foo to bar.
- blunte 8y agoWow! Thank you.
- yjftsjthsd-h 8y ago> Even better you don't have to be with the cursor on the number you want to increment or decrement with Ctrl-A and Ctrl-X. It will work with the next number to the right of the cursor. To the point that I have used c-x c-a as a stupid shortcut to jump to the next number on a line. I'm sure there's a better way to do this, but it's fast so...
- edanm 8y agoSurprisingly, there actually isn't an out-of-the-box way to jump to numbers that I know of! I personally added a "number" text object, so that I can treat numbers just like "words", and also created a "jump to number" shortcut.
- vbsteven 8y agoAnd just for completeness: ci' and ci" replace everything within the quotes, ca' and ca" replace everything including the quotes.