Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d716c76919202611400002b

Numbering a List

Pretty simple, number the list.

Start file
line one
line two
line three
line four
line five
line six
line seven
line eight
End file
1. line one
2. line two
3. line three
4. line four
5. line five
6. line six
7. line seven
8. line eight

View Diff

1,8c1,8
< line one
< line two
< line three
< line four
< line five
< line six
< line seven
< line eight
---
> 1. line one
> 2. line two
> 3. line three
> 4. line four
> 5. line five
> 6. line six
> 7. line seven
> 8. line eight

Solutions by @peter_anselmo:

Unlock 5 remaining solutions by signing in and submitting your own entry
Created by: @khamer

652 active golfers, 1931 entries

Solutions by @peter_anselmo:
19
#227 - Peter Anselmo / @peter_anselmo

03/13/2012 at 01:09PM

20
#>303 - Peter Anselmo / @peter_anselmo

03/13/2012 at 01:08PM

21
#>378 - Peter Anselmo / @peter_anselmo

03/13/2012 at 01:07PM

22
#>429 - Peter Anselmo / @peter_anselmo

03/13/2012 at 01:02PM

22
#>429 - Peter Anselmo / @peter_anselmo

03/13/2012 at 01:06PM