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):
52
#31 - Volodymyr / @vkrest

07/17/2013 at 02:03PM

52
#32 - Alexander Kazakov / @volandkot

04/03/2015 at 02:45PM

54
#33 - Eric Dilmore / @geppettodivacin

06/27/2013 at 12:48AM

54
#34 - Carlos A Henríquez Q / @lagunex

01/19/2015 at 11:27AM

55
#35 - powertomato / @powertomato

07/07/2013 at 10:30AM

57
#36 - Eric Potter / @pottereric

06/10/2013 at 05:21PM

58
#37 - gary.klindt@googlema / @garstekli

11/26/2013 at 04:07PM

59
#38 - くま ก็็็็็็็็็็็็็ʕ•͡ᴥ•ʔ ก้้้้้้้้้้้ 55 / @kumack55

06/10/2013 at 01:08AM

59
#39 - Roland Schatz / @fl_Overmind

07/12/2013 at 03:46PM

60
#40 - ———đίxίє—flαтlίиє——— / @_dixie_flatline

07/20/2013 at 05:05AM

61
#41 - REPLicated / @re_plicated

06/26/2013 at 01:07PM

61
#42 - Gurukandhamoorthi / @Gurukandhamoor1

08/24/2017 at 04:01PM

64
#43 - Ker / @alin_ker

06/12/2013 at 01:52PM

64
#44 - Andy Balaam / @andybalaam

06/13/2013 at 03:06PM

64
#45 - qtwtetrt / @qtwtetrt

06/23/2013 at 02:45PM

65
#46 - Nathan / @NathanHarperoni

06/12/2013 at 06:51PM

66
#47 - Javier Blanco / @jbgutierrez

06/21/2013 at 07:45PM

66
#48 - Steve Tjoa / @stevetjoa

07/03/2013 at 06:19PM

66
#49 - RobertT / @techrt2050

07/10/2013 at 06:22AM

66
#50 - James / @Dronak

09/01/2013 at 04:28AM

67
#51 - Tullio Facchinetti / @toolleeo

08/02/2013 at 12:49PM

67
#52 - Quota / @Quotad

02/03/2014 at 10:05AM

68
#53 - Vestrobaa / @Vestrobaa

07/21/2013 at 08:12PM

68
#54 - Roberto Martínez / @nilp0inter

08/27/2018 at 10:43PM

69
#55 - Pablo Caro / @pcaro90

06/11/2013 at 04:29PM

69
#56 - Stefan Antoni / @Suchkultur

06/18/2013 at 06:12PM

70
#57 - Thiago Alves / @townk

07/05/2013 at 06:43AM

71
#58 - Al / @96258

06/10/2013 at 01:40AM

71
#59 - mnx / @mnxx

06/11/2013 at 02:48PM

80
#60 - Oliver Christ / @0liverChrist

09/25/2013 at 02:30PM