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 4d1e037dde2f897c2a000417

Reverse and count

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

Start file
Sixth line
Fifth line
Fourth line
Third line
Second line
First line
End file
1. First line
2. Second line
3. Third line
4. Fourth line
5. Fifth line
6. Sixth line

View Diff

1,6c1,6
< Sixth line
< Fifth line
< Fourth line
< Third line
< Second line
< First line
---
> 1. First line
> 2. Second line
> 3. Third line
> 4. Fourth line
> 5. Fifth line
> 6. Sixth line

Solutions by @p0ckets:

Unlock 10 remaining solutions by signing in and submitting your own entry
Created by: @jamesconroyfinn

172 active golfers, 456 entries

Solutions by @p0ckets:
22
#35 - p0ckets / @p0ckets

10/09/2011 at 07:58PM

24
#>67 - p0ckets / @p0ckets

10/09/2011 at 06:57PM

26
#>98 - p0ckets / @p0ckets

10/09/2011 at 06:54PM

27
#>103 - p0ckets / @p0ckets

10/09/2011 at 06:53PM

29
#>111 - p0ckets / @p0ckets

10/09/2011 at 06:51PM

31
#>120 - p0ckets / @p0ckets

10/08/2011 at 11:04PM

32
#>126 - p0ckets / @p0ckets

10/08/2011 at 10:58PM

33
#>142 - p0ckets / @p0ckets

10/08/2011 at 10:57PM

33
#>142 - p0ckets / @p0ckets

10/08/2011 at 11:03PM

34
#>151 - p0ckets / @p0ckets

10/08/2011 at 10:56PM