View Single Post
Old July 25th, 2013, 09:42 PM   #698 (permalink)
MoodyBlues
- Crazy peacock person -
Thread Author (OP)
 
MoodyBlues's Avatar
 
Join Date: Jan 2011
Location: /home/LosAngeles
Posts: 3,255
 
Device(s): Kindle Fire HD 8.9" (rooted), Motorola Atrix 2, Motorola Atrix 4G (retired), Motorola Bravo (retired
Carrier: AT&T

Thanks: 1,073
Thanked 1,535 Times in 941 Posts
Default

Quote:
Originally Posted by 9to5cynic View Post
Here's a little vim trick I learned today.

If you want to increment numbers:
1. insert mode (i)
2. type '1.'
3. record mode (q) to a (a)
4. copy Shift V (V)
5. paste with (p)
6. move to the digit
7. Ctrl+a

Now you should have:
1.
2.

Oops... forgot a step - you have to end the recording with another press of q..

From here you can type "3@a" and get this:
1.
2.
3.
4.
5.
It's not working for me. I'll try again later, or tomorrow, and see if being awake helps.
__________________


MoodyBlues is online now  
Reply With Quote