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 by @_AlexLewin:

Unlock 17 remaining solutions by signing in and submitting your own entry
Created by: @filbranden

34 active golfers, 149 entries

Solutions by @_AlexLewin:
21
#2 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:48PM

21
#>3 - Alex Lewin / @_AlexLewin

02/17/2023 at 06:01AM

22
#>6 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:47PM

24
#>10 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:51PM

26
#>12 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:46PM

28
#>13 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:46PM

31
#>14 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:45PM

32
#>16 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:44PM

33
#>17 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:44PM

34
#>19 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:43PM

35
#>21 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:40PM

36
#>24 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:40PM

41
#>24 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:37PM

41
#>24 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:38PM

49
#>32 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:35PM

53
#>34 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:53PM

210
#>34 - Alex Lewin / @_AlexLewin

09/19/2022 at 07:34PM