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 5fcaaf0e2529cd000c9304ce

Staircase

Going downstairs, while singing the alphabet song. Some vb practice to us all. Would it be much easier to make it go from left to right instead?

Start file
                         A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
End file
                         A
                        BB
                       CCC
                      DDDD
                     EEEEE
                    FFFFFF
                   GGGGGGG
                  HHHHHHHH
                 IIIIIIIII
                JJJJJJJJJJ
               KKKKKKKKKKK
              LLLLLLLLLLLL
             MMMMMMMMMMMMM
            NNNNNNNNNNNNNN
           OOOOOOOOOOOOOOO
          PPPPPPPPPPPPPPPP
         QQQQQQQQQQQQQQQQQ
        RRRRRRRRRRRRRRRRRR
       SSSSSSSSSSSSSSSSSSS
      TTTTTTTTTTTTTTTTTTTT
     UUUUUUUUUUUUUUUUUUUUU
    VVVVVVVVVVVVVVVVVVVVVV
   WWWWWWWWWWWWWWWWWWWWWWW
  XXXXXXXXXXXXXXXXXXXXXXXX
 YYYYYYYYYYYYYYYYYYYYYYYYY
ZZZZZZZZZZZZZZZZZZZZZZZZZZ

View Diff

1c1,26
<                          A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
---
>                          A
>                         BB
>                        CCC
>                       DDDD
>                      EEEEE
>                     FFFFFF
>                    GGGGGGG
>                   HHHHHHHH
>                  IIIIIIIII
>                 JJJJJJJJJJ
>                KKKKKKKKKKK
>               LLLLLLLLLLLL
>              MMMMMMMMMMMMM
>             NNNNNNNNNNNNNN
>            OOOOOOOOOOOOOOO
>           PPPPPPPPPPPPPPPP
>          QQQQQQQQQQQQQQQQQ
>         RRRRRRRRRRRRRRRRRR
>        SSSSSSSSSSSSSSSSSSS
>       TTTTTTTTTTTTTTTTTTTT
>      UUUUUUUUUUUUUUUUUUUUU
>     VVVVVVVVVVVVVVVVVVVVVV
>    WWWWWWWWWWWWWWWWWWWWWWW
>   XXXXXXXXXXXXXXXXXXXXXXXX
>  YYYYYYYYYYYYYYYYYYYYYYYYY
> ZZZZZZZZZZZZZZZZZZZZZZZZZZ

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 21 remaining solutions by signing in and submitting your own entry
#22 e1mnos / @e1mnos - Score: 49 - 08/13/21 @ 15:20
:set et<CR>a<CR> <Esc>kqqYpjwXxkvaw:s/\w/<C-R>"/g<CR>xppbXq24@qJZZ

0 comments


#23 russellzhaomao / @russellzhaomao - Score: 49 - 05/22/22 @ 13:08
:se et<Tab><CR>a<CR> <Esc><Up>qqYp<Down>wXx<Up>vaw:s/\w/<C-R>"/g<CR>xppbXq24@qJZZ

0 comments


#24 Austin Willliams / @GuitarMusash616 - Score: 49 - 11/15/22 @ 17:25
:set et<CR>a<CR> <Esc>kqqYpjwXxkvaw:s/\w/<C-R>"/g<CR>xppbXq24@qJZZ

0 comments


Created by: @filbranden

24 active golfers, 81 entries

Leaderboard (lowest score wins):
21
#1 - John Braxler / @braxler

08/30/2021 at 03:33PM

21
#2 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:48PM

21
#3 - Jay R / @RonatinJ

09/25/2022 at 09:06PM

22
#4 - Miłosz Łakomy / @foobar01123

08/18/2021 at 09:18AM

26
#5 - Jon Krause / @jkrause314

12/05/2020 at 03:56AM

26
#6 - chocolate / @chocola81394123

12/05/2020 at 01:57PM

28
#7 - Jean George / @JeanGeo20504212

11/29/2021 at 08:35PM

31
#8 - Georg Bökman / @BokmanGeorg

07/06/2021 at 03:46PM

32
#9 - 悟史 / @A1OBJTxN5fTg5EJ

07/14/2021 at 09:23AM

32
#10 - 'ymdarake / @ymdarake

08/28/2022 at 08:08AM

33
#11 - roudens / @roudens2

05/22/2021 at 05:24PM

34
#12 - Smylers / @Smylers2

12/07/2020 at 10:12PM

34
#13 - redbigyesnoGoThenWhy / @redbigyesno

06/11/2022 at 07:18AM

34
#14 - bastien batardier / @supercamarche

11/09/2022 at 09:56PM

35
#15 - mevmev / @mevmev8

09/06/2021 at 07:14PM

36
#16 - Filipe Brandenburger / @filbranden

12/07/2020 at 09:23PM

36
#17 - preethamrn / @preethamrn

10/22/2021 at 09:06PM

36
#18 - Sammit / @somemeatjain

01/30/2022 at 06:05PM

41
#19 - Tejaswini Deshmukh / @todeshmukh

09/25/2022 at 09:33PM

42
#20 - Siddharth Murali / @SidTweetsALess

06/25/2022 at 01:53PM

45
#21 - PoustouFlan / @Poustou_Flan

11/21/2022 at 09:48PM

49
#22 - e1mnos / @e1mnos

08/13/2021 at 03:20PM

49
#23 - russellzhaomao / @russellzhaomao

05/22/2022 at 01:08PM

49
#24 - Austin Willliams / @GuitarMusash616

11/15/2022 at 05:25PM