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 by @z00master:

Unlock 14 remaining solutions by signing in and submitting your own entry
Created by: @udioica

75 active golfers, 249 entries

Solutions by @z00master:
40
#29 - z00master / @z00master

08/29/2022 at 03:48PM

41
#>30 - z00master / @z00master

08/29/2022 at 03:47PM

43
#>32 - z00master / @z00master

08/29/2022 at 03:46PM

46
#>33 - z00master / @z00master

08/29/2022 at 03:45PM

48
#>35 - z00master / @z00master

08/29/2022 at 03:44PM

49
#>36 - z00master / @z00master

08/29/2022 at 03:41PM

49
#>36 - z00master / @z00master

08/29/2022 at 03:43PM

51
#>37 - z00master / @z00master

08/29/2022 at 03:41PM

52
#>39 - z00master / @z00master

08/29/2022 at 03:38PM

59
#>47 - z00master / @z00master

08/29/2022 at 03:35PM

60
#>48 - z00master / @z00master

08/29/2022 at 03:34PM

61
#>50 - z00master / @z00master

08/29/2022 at 03:33PM

65
#>55 - z00master / @z00master

08/29/2022 at 03:32PM

66
#>59 - z00master / @z00master

08/29/2022 at 03:30PM