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 50 remaining solutions by signing in and submitting your own entry
#51 Quota / Quotad - Score: 67 - 02/03/14 @ 10:05
3<CR><C-A>2<CR><C-A>2<CR>r3<CR>r4<CR>r33<CR><C-A><CR><C-A><CR>r42<CR><C-A><CR>r3<CR>r4<CR>r5<CR>r6<CR>r52<CR><C-A><CR>r3<CR><C-A>3<CR><C-A><CR>r3<CR>r4<CR>r54<CR><C-A>ZZ

0 comments


#52 Vestrobaa / Vestrobaa - Score: 68 - 07/21/13 @ 20:12
qa/1. Tw<CR>r2q8@a/1. T<CR>r3n.n.n.n./1. Fo<CR>r4n.n.n./1. F<CR>r5n.n./1. S<CR>r6ZZ

0 comments


#53 Pablo Caro / pcaro90 - Score: 69 - 06/11/13 @ 16:29
/1. tw<CR>r2n.n.n.n.n.n.n.n.?1. t<CR>r3n.n.n.n./1. F<CR>r4n.n.nnn.nr5N.N.jr6ZZ

0 comments


#54 Stefan Antoni / Suchkultur - Score: 69 - 06/18/13 @ 18:12
/1<CR>2n<C-A>2n<C-A>2n2<C-A>n3<C-A>n2<C-A>3n<C-A>n<C-A>n3<C-A>nn<C-A>n2<C-A>n3<C-A>n4<C-A>n5<C-A>n4<C-A>2n<C-A>n2<C-A>n<C-A>3n<C-A>n2<C-A>n3<C-A>n4<C-A>n<C-A>ZZ

0 comments


#55 Thiago Alves / townk - Score: 70 - 07/05/13 @ 06:43
/1<CR>2n<C-A>2n<C-A>2n2<C-A>n3<C-A>n2<C-A>3n<C-A>n<C-A>n2<C-A><C-A>2n<C-A>n2<C-A>n3<C-A>n4<C-A>n5<C-A>n4<C-A>2n<C-A>n2<C-A>n<C-A>3n<C-A>n2<C-A>n3<C-A>n4<C-A>n<C-A>ZZ

0 comments


#56 Al / 96258 - Score: 71 - 06/10/13 @ 01:40
3j<C-A>jj.jj<C-A><C-A>j3.<CR>..uu<C-A><C-A>3j<C-A><CR><C-A><CR>3<C-A>jj<C-A>j<C-A><C-A>j3<C-A>j4<C-A>j5<C-A><CR>4<C-A>jj<C-A>j2<C-A><CR><C-A>3j<C-A>j<C-A><C-A>j3<C-A>j4<C-A>\<CR><C-A>ZZ

0 comments


#57 mnx / mnxx - Score: 71 - 06/11/13 @ 14:48
/1. tw<CR><C-A>n<C-A>n<C-A>n<C-A>n<C-A>n<C-A>n<C-A>n<C-A>n<C-A>/<Up><BS><CR>2<C-A>n.n.n.n./<Up><BS>fo<CR>3<C-A>n.n.n./<Up><BS><CR>4<C-A>n.n./<Up><BS>s<CR>5<C-A>ZZ

0 comments


#58 Oliver Christ / 0liverChrist - Score: 80 - 09/25/13 @ 14:30
:%s/1. Tw/2. Tw<CR>:%s/1. T/3. T<CR>:%s/1. Fo/4. To<BS><BS>Fo<CR>:%s/1. F/5. F<CR>:%s/1. S/6. S<CR>ZZ

0 comments


#59 William Snyders / iam2391212 - Score: 81 - 07/15/13 @ 20:51
/Tw<CR>qa3hr2nnq8@a/Th<CR>qq"aphhqr3qwllvbl"adhq5@a/Fo<CR>@qr4@w4@a/Fi<CR>@qr5@w3@a/Si<CR>3hr6ZZ

0 comments


#60 Michael Coles / gen_ale_drinker - Score: 81 - 08/15/13 @ 16:37
:%s/1. Tw/2. Tw/|%s/1. Th/3. Th/|%s/1. Fo/4. Fo/|%s/1. Fi/5. Fi/|%s/1. S/6. S<CR>ZZZ

0 comments


#61 Bogdan Gusiev / bgusiev - Score: 84 - 06/28/13 @ 07:57
:%s/\d.*\(Tw\)/2. \1<CR>:<Up><Left><Left><Left><Left><BS>3<Left><Left><Left><Left><BS>h<CR>:<Up><C-Left><C-Left><C-Right><Left><BS>4<Left><Left><Left><Left><BS><BS>Fo<CR>:<Up><C-Left><Left><Left><BS>5<Left><Left><Left><Left><BS>i<CR>:<Up><C-Left><Left><Left><BS>6<Left><Left><Left><Left><Left><BS>S<CR>ZZ

0 comments


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


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

63 active golfers, 198 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

28
#6 - Aaron Bieber / aaronbieber

07/14/2013 at 10:05PM

28
#7 - Turkey Man / lvturkeyman

12/07/2017 at 09:11AM

29
#8 - James Davis / tripvg

06/28/2013 at 09:31PM

30
#9 - Bradd Szonye / bszonye

07/10/2013 at 11:01PM

30
#10 - thasso / thasso23

10/30/2013 at 11:14PM

30
#11 - ZorgroZ / ZorgroZ

04/15/2014 at 12:29AM

31
#12 - Stephen Betts / stephenbetts

10/20/2017 at 08:59PM

32
#13 - Kai Yuan / kentyuan

07/04/2013 at 09:21AM

33
#14 - brett / brettyukich

09/21/2013 at 01:05AM

33
#15 - jimauthors / jimauthors

02/13/2014 at 01:01AM

34
#16 - DHM / DHM29978992

05/29/2018 at 02:31AM

36
#17 - Eric Söderström / eksoderstrom

06/12/2013 at 03:20PM

37
#18 - Krzysztof Adamski / adamski_k

06/23/2013 at 04:16PM

39
#19 - Trevor Powell / DoomedBunnies

06/10/2013 at 07:34AM

40
#20 - _ky_ / ultimate_ky

08/13/2013 at 11:53PM

40
#21 - Joonas Pihlajamaa / jokkebk

03/13/2014 at 10:21AM

40
#22 - Walker Boh / walker_boh

12/15/2015 at 09:25AM

41
#23 - James T. Huggett / Jmeshka

10/03/2013 at 05:09PM

43
#24 - Timothée Gauthier / zmf_tim

07/06/2013 at 02:25PM

43
#25 - cj / cj01101

08/04/2013 at 06:17PM

48
#26 - Justin / justinjaffray

06/14/2013 at 03:11PM

48
#27 - Andrew Crites / ExplosionPills

09/14/2013 at 03:27AM

49
#28 - Ram Tamtam / ramtamtamtam

07/28/2014 at 03:31PM

51
#29 - Victor Ramirez / virako

06/10/2013 at 01:58AM

52
#30 - Volodymyr / vkrest

07/17/2013 at 02:03PM