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 502f2e628f37220002000031

Create an alphabet diamond

Here's a brain teaser to keep things interesting...

Start file
A
End file
                         AA
                        BBBB
                       CCCCCC
                      DDDDDDDD
                     EEEEEEEEEE
                    FFFFFFFFFFFF
                   GGGGGGGGGGGGGG
                  HHHHHHHHHHHHHHHH
                 IIIIIIIIIIIIIIIIII
                JJJJJJJJJJJJJJJJJJJJ
               KKKKKKKKKKKKKKKKKKKKKK
              LLLLLLLLLLLLLLLLLLLLLLLL
             MMMMMMMMMMMMMMMMMMMMMMMMMM
            NNNNNNNNNNNNNNNNNNNNNNNNNNNN
           OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
          PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
         QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
        RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
       SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
      TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
     UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
    VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
   WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
 YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
   WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
    VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
     UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
      TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
       SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
        RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
         QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
          PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
           OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
            NNNNNNNNNNNNNNNNNNNNNNNNNNNN
             MMMMMMMMMMMMMMMMMMMMMMMMMM
              LLLLLLLLLLLLLLLLLLLLLLLL
               KKKKKKKKKKKKKKKKKKKKKK
                JJJJJJJJJJJJJJJJJJJJ
                 IIIIIIIIIIIIIIIIII
                  HHHHHHHHHHHHHHHH
                   GGGGGGGGGGGGGG
                    FFFFFFFFFFFF
                     EEEEEEEEEE
                      DDDDDDDD
                       CCCCCC
                        BBBB
                         AA

View Diff

1c1,52
< A
---
>                          AA
>                         BBBB
>                        CCCCCC
>                       DDDDDDDD
>                      EEEEEEEEEE
>                     FFFFFFFFFFFF
>                    GGGGGGGGGGGGGG
>                   HHHHHHHHHHHHHHHH
>                  IIIIIIIIIIIIIIIIII
>                 JJJJJJJJJJJJJJJJJJJJ
>                KKKKKKKKKKKKKKKKKKKKKK
>               LLLLLLLLLLLLLLLLLLLLLLLL
>              MMMMMMMMMMMMMMMMMMMMMMMMMM
>             NNNNNNNNNNNNNNNNNNNNNNNNNNNN
>            OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
>           PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
>          QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
>         RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
>        SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
>       TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
>      UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
>     VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
>    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
>   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>  YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
> ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
> ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
>  YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
>   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
>     VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
>      UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
>       TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
>        SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
>         RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
>          QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
>           PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
>            OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
>             NNNNNNNNNNNNNNNNNNNNNNNNNNNN
>              MMMMMMMMMMMMMMMMMMMMMMMMMM
>               LLLLLLLLLLLLLLLLLLLLLLLL
>                KKKKKKKKKKKKKKKKKKKKKK
>                 JJJJJJJJJJJJJJJJJJJJ
>                  IIIIIIIIIIIIIIIIII
>                   HHHHHHHHHHHHHHHH
>                    GGGGGGGGGGGGGG
>                     FFFFFFFFFFFF
>                      EEEEEEEEEE
>                       DDDDDDDD
>                        CCCCCC
>                         BBBB
>                          AA

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 Enrique Paredes / iknite - Score: 96 - 08/18/12 @ 15:56
:se nf=alpha<CR>qqYp<C-A>q24@qggqa<C-V>25jyppjq26@a<Esc>Az<BS>ZZ<Esc>gg<C-V>25jx26YP:26,$sort!<CR>:%ce52<CR>:%s/\t/        /g<CR>ZZ

0 comments

#23 A / a_akessler - Score: 98 - 11/04/12 @ 03:32
:se nf=alpha<CR>qqYp<C-A>q24@qggqa<C-V>25jyppjq26@a<Esc>Az<BS>ZZ<Esc>gg<C-V>25jx26YP:26,$sort!<CR><CR>:%ce52<CR><CR>:%s/\t/        /g<CR>ZZ

0 comments

#24 Oliver Christ / 0liverChrist - Score: 99 - 10/31/13 @ 00:05
:set nf=alpha<CR>qayyp<C-A>q24@ayypqayyyyp<C-X>q24@a<C-V>ggypqa+<C-V>24jjlypq24@a:set sts=4<CR>:set expand<Tab><CR>:1,52ce 52<CR>ZZ

0 comments

#25 Jason Bruce / jbrucenet - Score: 121 - 08/20/12 @ 01:19
:set nrformats=alpha<NL>qqYp<C-A>q25@qkjddggYPu<C-V>25jypjqq<C-V>25jyppjq24@qAZZ<Esc>:1,$s/<BS><BS>y<NL>p:,$sort!<NL>:%ce<NL>u:%ce52<NL>/<Tab><NL>:%s/<Tab>/        /g<NL>ZZ

0 comments

#26 Julien Pivotto / roidelapluie - Score: 283 - 08/18/12 @ 07:47
:set nrformats=alpha<CR>qqyyp<C-A>q24@qggxppj<C-V>25jypppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppj<C-V>25jyppgg26yyP:26,$sort!<CR>:%ce52<CR>:%s/\t/        /g<CR>ZZ

0 comments

#27 Arto Vuori / dhpe - Score: 568 - 08/31/12 @ 18:14
AA<CR><C-O>4iB<Esc>o<C-O>6iC<Esc>o<C-X>o<BS><C-O>8iD<Esc>o<C-O>10iE<Esc>o<C-O>12iF<Esc>o<C-O>14iG<Esc>o<C-O>14iH<Esc>AHH<CR><C-O>18iI<Esc>o<C-O>20iJ<Esc>o<C-O>22K<C-O>22iK<Esc>o<C-O>24iL<Esc>o<C-O>26iM<Esc>o<C-O>28iN<Esc>o<C-O>30iO<Esc>o<C-O>32iP<Esc>o<C-O>34iQ<Esc>o<C-O>36iR<Esc>o<C-O>38iS<Esc>o<C-O>40iT<Esc>o<C-O>42iU<Esc>o<C-O>44iV<Esc>o<C-O>46iW<Esc>o<C-O>48iX<Esc>o<C-O>50iY<Esc>o5<BS><C-O>52iZ<Esc>0ki <Esc>ki  <Esc>k0i<C-O>3i <Esc>k0i<C-O>4i <Esc>k0i<C-O>5i <Esc>k0i<C-O>6i <Esc>k0i<C-O>7i <Esc>k0i<C-O>8i <Esc>0ik<Esc>uki<C-O>8i <Esc>i <Esc>k0i<C-O>9i <Esc>i <Esc>k0i<C-O>11i <Esc>k0i<C-O>12i <Esc>k0i<C-O>13i <Esc>k0i<C-O>14i <Esc>k0i<C-O>15i <Esc>k0i<C-O>16i <Esc>k0i<C-O>17i <Esc>k0i<C-O>18i <Esc>k0i <BS><C-O>19i <Esc>k0i<C-O>20i <Esc>i<Esc>k0i<C-O>21i <Esc>k0i<C-O>22i <Esc>k0i<C-O>23i <Esc>k0i<C-O>24i <Esc>k0i<C-O>25i <Esc><Esc>25GyyGp24GYGp23GYGp22GYGp21GYGp20GYGp19GYGp18GYGp17GYGp16GYGp15GY1<Esc>Gp14GYGp13GYGp12GYGp11GYp<BS><Esc>uGp10GYGp9GYGp8GYGp7GYGp6GYGp5GYGp4GYGp3GYGp2GYGp1Y<Esc>1GYGp26GYPZZ

0 comments

Created by: connermcd

27 active golfers, 67 entries

Leaderboard (lowest score wins):
40
#1 - Kerson Hsiao / KersonHsiao

08/18/2012 at 05:02PM

40
#2 - Urtica dioica / udioica

08/18/2012 at 09:07PM

40
#3 - Conner McDaniel / connermcd

09/18/2012 at 04:28AM

40
#4 - Petro Тrouq / zulolosi

07/01/2014 at 07:48PM

40
#5 - John Braxler / braxler

09/10/2014 at 10:12PM

49
#6 - Justin Love / wondible

08/24/2012 at 05:55AM

49
#7 - Victor Ramirez / virako

10/20/2012 at 06:11PM

52
#8 - Joonas Pihlajamaa / jokkebk

03/25/2014 at 04:15PM

54
#9 - tmr / tmr314

09/06/2012 at 12:48PM

54
#10 - Édouard M'tou / DouardM

10/08/2012 at 11:06PM

56
#11 - vansan / VinceVansan

08/23/2012 at 05:38PM

56
#12 - J. Nick Terry / deft_code

08/28/2012 at 01:11AM

58
#13 - Peter Schlette / pschlette

08/18/2012 at 07:53PM

58
#14 - Rod Knowlton / codelahoma

09/04/2012 at 07:53PM

61
#15 - Gary Fixler / gfixler

08/25/2012 at 08:40AM

64
#16 - Chris Brown / engineercyb

08/21/2012 at 09:25PM

65
#17 - Piotr Śniegowski / PiotrSniegowski

06/06/2013 at 02:30PM

69
#18 - deigen / deigen0

08/29/2012 at 10:05AM

77
#19 - 無ん垢の叫び / john_ababa

09/16/2012 at 10:12AM

79
#20 - Jason Wolf / zephyr_wolf

11/15/2012 at 08:37PM

88
#21 - Lieven Keersmaekers / LievenKeersmaek

11/24/2012 at 03:39PM

96
#22 - Enrique Paredes / iknite

08/18/2012 at 03:56PM

98
#23 - A / a_akessler

11/04/2012 at 03:32AM

99
#24 - Oliver Christ / 0liverChrist

10/31/2013 at 12:05AM

121
#25 - Jason Bruce / jbrucenet

08/20/2012 at 01:19AM

283
#26 - Julien Pivotto / roidelapluie

08/18/2012 at 07:47AM

568
#27 - Arto Vuori / dhpe

08/31/2012 at 06:14PM