Join Nostr
2025-11-05 00:32:15 UTC
in reply to

Hyde šŸ“· šŸ–‹ :debian: on Nostr: Day 4: Numbers Everybody knows Ctrl-a to increment a number, and Ctrl-x to decrement ...

Day 4: Numbers

Everybody knows Ctrl-a to increment a number, and Ctrl-x to decrement a number. Just put the cursor on the line of a number and hit, the keys! Ma - gic !

Another thing that you may want to try:

- open a file
- type:

0
0
0
0
0
0

- then Ctrl-v or V to select the lines "visually"
- hit the keys: g Ctrl-a
- Enjoy the result:

0
1
2
3
4
5

It works also if you do with two or more zeros (00, 000, etc)

1/2

#Vimovember #vim #neovim #opensource #FOSS #fediverse #editors