:: home : bio : blog : art
Nights drawing in over the city. Winter 2024 in Edinburgh.
March
Sun Mon Tue Wed Thu Fri Sat
         
30
           

Contact


 

Archives

Recent Posts

Sat, 30 Mar 2013
Vim Power
# 16:53 in ./tech

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).

© Alastair Sherringham 2023
Powered by Blosxom.
Still going after all these years.