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 77 remaining solutions by signing in and submitting your own entry
#78 Jan Scholz / @radikalliberal - Score: 130 - 10/17/24 @ 22:16
:%s/1.\ Tw/2.\ Tw/<CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><BS>h<Right><Del>3<End><Left><BS>h<CR>:<Up><C-Left><C-Left><Del><Del>F<Right><Del>f<BS>F<End><Left><BS><BS><BS><BS><BS><BS>4. F<Left><Left>\<CR>:<Up><Left><Left><Left><Left><Left><Left><Left>i<Right><Del>5<End><Left>i<CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS>4<CR>:<Up><Home><Right><Right><Right><Del>1<Right><Right><Right><Del><Del>1<BS>s<Right><Del>6<Right><Right><Right><Del><Del>S<CR>ZZ

0 comments


Created by: @udioica

78 active golfers, 280 entries

Leaderboard (lowest score wins):
40
#31 - nickGPT / @nickandbro

08/28/2024 at 06:33PM

41
#32 - James T. Huggett / @Jmeshka

10/03/2013 at 05:09PM

43
#33 - zmf_tim / @zmf_tim

07/06/2013 at 02:25PM

43
#34 - cj / @cj01101

08/04/2013 at 06:17PM

46
#35 - RockerZZY / @rocker_zzy

08/21/2020 at 02:11AM

48
#36 - Justin / @justinjaffray

06/14/2013 at 03:11PM

48
#37 - Andrew Crites / @ExplosionPills

09/14/2013 at 03:27AM

49
#38 - Ram Tamtam / @ramtamtamtam

07/28/2014 at 03:31PM

51
#39 - Victor Ramirez / @virako

06/10/2013 at 01:58AM

52
#40 - Volodymyr / @vkrest

07/17/2013 at 02:03PM

52
#41 - Alexander Kazakov / @volandkot

04/03/2015 at 02:45PM

54
#42 - Eric Dilmore / @geppettodivacin

06/27/2013 at 12:48AM

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

01/19/2015 at 11:27AM

55
#44 - powertomato / @powertomato

07/07/2013 at 10:30AM

57
#45 - Eric Potter / @pottereric

06/10/2013 at 05:21PM

57
#46 - Alex / @AlexanderHeatl2

05/27/2022 at 05:29PM

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

11/26/2013 at 04:07PM

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

06/10/2013 at 01:08AM

59
#49 - Roland Schatz / @fl_Overmind

07/12/2013 at 03:46PM

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

07/20/2013 at 05:05AM

61
#51 - REPLicated / @re_plicated

06/26/2013 at 01:07PM

61
#52 - Gurukandhamoorthi / @Gurukandhamoor1

08/24/2017 at 04:01PM

64
#53 - Ker / @alin_ker

06/12/2013 at 01:52PM

64
#54 - Andy Balaam / @andybalaam

06/13/2013 at 03:06PM

64
#55 - qtwtetrt / @qtwtetrt

06/23/2013 at 02:45PM

64
#56 - Borna Sadeghi / @borna_sadeghi

03/19/2021 at 01:08AM

65
#57 - Nathan / @NathanHarperoni

06/12/2013 at 06:51PM

66
#58 - Javier Blanco / @jbgutierrez

06/21/2013 at 07:45PM

66
#59 - Steve Tjoa / @stevetjoa

07/03/2013 at 06:19PM

66
#60 - RobertT / @techrt2050

07/10/2013 at 06:22AM