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 50b5266f448d770002000106

Readable Rubyhash

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

Start file
{:a=>1,:b=>2,:c=>3}
End file
{
  a: 1,
  b: 2,
  c: 3
}

View Diff

1c1,5
< {:a=>1,:b=>2,:c=>3}
---
> {
>   a: 1,
>   b: 2,
>   c: 3
> }

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 94 remaining solutions by signing in and submitting your own entry
#95 Chris Maguire / @chriswmaguire - Score: 104 - 11/28/12 @ 15:01
a<CR><<BS><Esc><<CR><Esc><BS><BS>jjx  hhi  <Esc>llllhlhhhxa:<Esc>lxxi <Esc>lll<CR><CR>i<CR>x<BS><Esc>lxlxxi: <Esc>lll<CR>i<CR><Esc>xhxxi  <Esc>ll:<Esc>i: x<BS><BS><Esc><Esc>lxx <BS>i <Esc>lli<CR><Esc><Esc>:wq<CR>

0 comments


Created by: @VimLondon

95 active golfers, 267 entries

Leaderboard (lowest score wins):
27
#31 - meatcar / @meatcar

11/28/2012 at 08:04PM

27
#32 - David Barnett / @mu_mind

11/29/2012 at 10:38AM

27
#33 - Jordan Eldredge / @captbaritone

12/01/2012 at 05:40AM

27
#34 - Django Janny / @keltroth

12/08/2012 at 04:34PM

27
#35 - Dominick LoBraico / @pygatea

12/11/2012 at 11:13PM

27
#36 - Lari / @larifariman

12/28/2012 at 12:27AM

27
#37 - martha / @hellomartha

01/17/2013 at 02:44PM

27
#38 - brett / @brettyukich

09/22/2013 at 01:00PM

27
#39 - Clement Kinder / @ClementKinder

03/06/2014 at 10:07AM

27
#40 - Joonas Pihlajamaa / @jokkebk

03/07/2014 at 12:35PM

27
#41 - Nic West / @west_nic

06/21/2014 at 03:09PM

27
#42 - Lifepillar / @lifepillar

09/23/2015 at 07:04PM

27
#43 - Jon Krause / @jkrause314

10/18/2015 at 05:04AM

27
#44 - albalitz / @_albalitz

06/27/2019 at 01:55PM

28
#45 - Felix Ingram / @lllamaboy

11/27/2012 at 09:13PM

28
#46 - Vim London / @VimLondon

11/27/2012 at 09:15PM

28
#47 - Akira Matsuda / @a_matsuda

11/28/2012 at 07:23AM

28
#48 - Pawel Obrok / @mrYapee

11/28/2012 at 09:19AM

28
#49 - n0nick / @n0nick

12/17/2012 at 04:29PM

28
#50 - Ben / @ben_g_thomas

01/06/2013 at 01:28AM

28
#51 - Daniel Jonsson / @DanielJonss

01/18/2013 at 12:49PM

28
#52 - Chris Trombley / @ctrombley

01/28/2013 at 06:26PM

28
#53 - Steve Tjoa / @stevetjoa

02/05/2013 at 06:26AM

28
#54 - Ram Tamtam / @ramtamtamtam

07/02/2014 at 10:58AM

28
#55 - James / @Dronak

09/21/2014 at 02:21AM

28
#56 - Walker Boh / @walker_boh

12/18/2015 at 03:02PM

29
#57 - Kerry Burke / @kurver

11/28/2012 at 07:20AM

29
#58 - Pete Johns / @johnsyweb

11/28/2012 at 07:28PM

29
#59 - Lieven Keersmaekers / @LievenKeersmaek

11/30/2012 at 04:06PM

29
#60 - Glen / @Glen_S

11/30/2012 at 11:11PM