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 51b4e3b920faf70002000001

Number an outline

The indent and words are right, but the numbers are all wrong.

Start file
1. One
  1. One
    1. One
  1. Two
    1. One
    1. Two
      1. One
    1. Three
    1. Four
  1. Three
    1. One
      1. One
      1. Two
    1. Two
  1. Four
    1. One
    1. Two
    1. Three
    1. Four
    1. Five
    1. Six
  1. Five
    1. One
    1. Two
    1. Three
1. Two
  1. One
    1. One
    1. Two
    1. Three
    1. Four
    1. Five
  1. Two
End file
1. One
  1. One
    1. One
  2. Two
    1. One
    2. Two
      1. One
    3. Three
    4. Four
  3. Three
    1. One
      1. One
      2. Two
    2. Two
  4. Four
    1. One
    2. Two
    3. Three
    4. Four
    5. Five
    6. Six
  5. Five
    1. One
    2. Two
    3. Three
2. Two
  1. One
    1. One
    2. Two
    3. Three
    4. Four
    5. Five
  2. Two

View Diff

4c4
<   1. Two
---
>   2. Two
6c6
<     1. Two
---
>     2. Two
8,10c8,10
<     1. Three
<     1. Four
<   1. Three
---
>     3. Three
>     4. Four
>   3. Three
13,15c13,15
<       1. Two
<     1. Two
<   1. Four
---
>       2. Two
>     2. Two
>   4. Four
17,22c17,22
<     1. Two
<     1. Three
<     1. Four
<     1. Five
<     1. Six
<   1. Five
---
>     2. Two
>     3. Three
>     4. Four
>     5. Five
>     6. Six
>   5. Five
24,26c24,26
<     1. Two
<     1. Three
< 1. Two
---
>     2. Two
>     3. Three
> 2. Two
29,33c29,33
<     1. Two
<     1. Three
<     1. Four
<     1. Five
<   1. Two
---
>     2. Two
>     3. Three
>     4. Four
>     5. Five
>   2. Two

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 63 remaining solutions by signing in and submitting your own entry
#64 Jim / @BLSJim - Score: 86 - 06/10/13 @ 00:01
:%s/1. Tw/2. Tw/g<CR>:%s/1. T/3. T/g<CR>:%s/1. F/4. F/g<CR>:%s/4. Fi/5. Fi/g<CR>:%s/1. S/6. S/g<CR>ZZ

0 comments


#65 Jonathan Johnson / @jonmarkjohnson - Score: 86 - 06/24/13 @ 16:05
:%s/1. Tw/2. Tw/g<CR>:%s/1. T/3. T/g<CR>:%s/1. Fo/4. Fo/g<CR>:%s/1. F/5. F/g<CR>:%s/1. S/6. S/g<CR>ZZ

0 comments


Created by: @udioica

65 active golfers, 201 entries

Leaderboard (lowest score wins):
81
#61 - William Snyders / @iam2391212

07/15/2013 at 08:51PM

81
#62 - Michael Coles / @gen_ale_drinker

08/15/2013 at 04:37PM

84
#63 - Bogdan Gusiev / @bgusiev

06/28/2013 at 07:57AM

86
#64 - Jim / @BLSJim

06/10/2013 at 12:01AM

86
#65 - Jonathan Johnson / @jonmarkjohnson

06/24/2013 at 04:05PM