Sat, 30 Mar 2013
Vim Power
Vim is a great text editor and I'm constantly surprised (and amazed) by the sort of things I discover you can do with it.
The latest surprise was :
if you place your cursor on a number and press Ctrl-a, the number is incremented by one. Ctrl-x on a number will decrement it by one. Further, modify the command with a count to increment or decrement by count i.e. 6 Ctrl-x decrements 6 from the number under the cursor.
Vim is full of odd little features like this.
If you use vim inside a terminal multiplexer like screen, you will need
to watch out for its default command key ... Ctrl-a! Changing this is a good idea
because it also gets in the way in other environments (e.g. the Bash shell).