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):
66
#61 - James / @Dronak

09/01/2013 at 04:28AM

67
#62 - Tullio Facchinetti / @toolleeo

08/02/2013 at 12:49PM

67
#63 - Quota / @Quotad

02/03/2014 at 10:05AM

68
#64 - Vestrobaa / @Vestrobaa

07/21/2013 at 08:12PM

68
#65 - Roberto Martínez / @nilp0inter

08/27/2018 at 10:43PM

69
#66 - Pablo Caro / @pcaro90

06/11/2013 at 04:29PM

69
#67 - Stefan Antoni / @Suchkultur

06/18/2013 at 06:12PM

70
#68 - Thiago Alves / @townk

07/05/2013 at 06:43AM

71
#69 - Al / @96258

06/10/2013 at 01:40AM

71
#70 - mnx / @mnxx

06/11/2013 at 02:48PM

73
#71 - POSIX / @po6ix

01/22/2022 at 04:13PM

80
#72 - Oliver Christ / @0liverChrist

09/25/2013 at 02:30PM

81
#73 - William Snyders / @iam2391212

07/15/2013 at 08:51PM

81
#74 - Michael Coles / @gen_ale_drinker

08/15/2013 at 04:37PM

84
#75 - Bogdan Gusiev / @bgusiev

06/28/2013 at 07:57AM

86
#76 - Jim / @BLSJim

06/10/2013 at 12:01AM

86
#77 - Jonathan Johnson / @jonmarkjohnson

06/24/2013 at 04:05PM

130
#78 - Jan Scholz / @radikalliberal

10/17/2024 at 10:16PM