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 75 remaining solutions by signing in and submitting your own entry
#76 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


#77 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

77 active golfers, 279 entries

Leaderboard (lowest score wins):
25
#1 - Urtica dioica / @udioica

06/10/2013 at 10:45AM

25
#2 - Łukasz Bujakowski / @eggxtreme

06/28/2013 at 01:56PM

25
#3 - Petro Тrouq / @zulolosi

06/29/2013 at 07:26PM

25
#4 - Stephen Drodge / @sjdrodge

10/07/2013 at 11:48PM

25
#5 - John Braxler / @braxler

04/14/2014 at 03:27PM

25
#6 - Peppa Pig / @PeppaPi95550250

07/16/2024 at 06:24AM

28
#7 - Aaron Bieber / @aaronbieber

07/14/2013 at 10:05PM

28
#8 - Turkey Man / @lvturkeyman

12/07/2017 at 09:11AM

29
#9 - James Davis / @tripvg

06/28/2013 at 09:31PM

29
#10 - Jean George / @JeanGeo20504212

06/13/2022 at 08:26PM

30
#11 - Bradd Szonye / @bszonye

07/10/2013 at 11:01PM

30
#12 - thasso / @thasso23

10/30/2013 at 11:14PM

30
#13 - ZorgroZ / @ZorgroZ

04/15/2014 at 12:29AM

31
#14 - Stephen Betts / @stephenbetts

10/20/2017 at 08:59PM

31
#15 - roudens / @roudens2

02/08/2021 at 02:36AM

32
#16 - Kai Yuan / @kentyuan

07/04/2013 at 09:21AM

32
#17 - quemeraisc / @quemeraisc

05/16/2022 at 04:22PM

33
#18 - brett / @brettyukich

09/21/2013 at 01:05AM

33
#19 - jimauthors / @jimauthors

02/13/2014 at 01:01AM

34
#20 - DHM / @DHM29978992

05/29/2018 at 02:31AM

34
#21 - Janzen / @__Coos

09/27/2022 at 09:26AM

34
#22 - Berel94 / @Berel94

04/06/2024 at 10:02PM

36
#23 - Eric Söderström / @eksoderstrom

06/12/2013 at 03:20PM

37
#24 - Krzysztof Adamski / @adamski_k

06/23/2013 at 04:16PM

39
#25 - Trevor Powell / @DoomedBunnies

06/10/2013 at 07:34AM

40
#26 - _ky_ / @ultimate_ky

08/13/2013 at 11:53PM

40
#27 - Joonas Pihlajamaa / @jokkebk

03/13/2014 at 10:21AM

40
#28 - Walker Boh / @walker_boh

12/15/2015 at 09:25AM

40
#29 - blabla zincou / @BZincou

04/14/2022 at 10:42PM

40
#30 - z00master / @z00master

08/29/2022 at 03:48PM