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 83 remaining solutions by signing in and submitting your own entry
#84 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

84 active golfers, 232 entries

Leaderboard (lowest score wins):
27
#31 - Dominick LoBraico / @pygatea

12/11/2012 at 11:13PM

27
#32 - Lari / @larifariman

12/28/2012 at 12:27AM

27
#33 - martha / @hellomartha

01/17/2013 at 02:44PM

27
#34 - brett / @brettyukich

09/22/2013 at 01:00PM

27
#35 - Clement Kinder / @ClementKinder

03/06/2014 at 10:07AM

27
#36 - Joonas Pihlajamaa / @jokkebk

03/07/2014 at 12:35PM

27
#37 - Nic West / @west_nic

06/21/2014 at 03:09PM

27
#38 - Lifepillar / @lifepillar

09/23/2015 at 07:04PM

27
#39 - Jon Krause / @jkrause314

10/18/2015 at 05:04AM

27
#40 - albalitz / @_albalitz

06/27/2019 at 01:55PM

28
#41 - Felix Ingram / @lllamaboy

11/27/2012 at 09:13PM

28
#42 - Vim London / @VimLondon

11/27/2012 at 09:15PM

28
#43 - Akira Matsuda / @a_matsuda

11/28/2012 at 07:23AM

28
#44 - Pawel Obrok / @mrYapee

11/28/2012 at 09:19AM

28
#45 - n0nick / @n0nick

12/17/2012 at 04:29PM

28
#46 - Ben / @ben_g_thomas

01/06/2013 at 01:28AM

28
#47 - Daniel Jonsson / @DanielJonss

01/18/2013 at 12:49PM

28
#48 - Chris Trombley / @ctrombley

01/28/2013 at 06:26PM

28
#49 - Steve Tjoa / @stevetjoa

02/05/2013 at 06:26AM

28
#50 - Ram Tamtam / @ramtamtamtam

07/02/2014 at 10:58AM

28
#51 - James / @Dronak

09/21/2014 at 02:21AM

28
#52 - Walker Boh / @walker_boh

12/18/2015 at 03:02PM

29
#53 - Kerry Burke / @kurver

11/28/2012 at 07:20AM

29
#54 - Pete Johns / @johnsyweb

11/28/2012 at 07:28PM

29
#55 - Lieven Keersmaekers / @LievenKeersmaek

11/30/2012 at 04:06PM

29
#56 - Glen / @Glen_S

11/30/2012 at 11:11PM

29
#57 - Panupan S. / @lionpeal

01/11/2013 at 11:58PM

29
#58 - cj / @cj01101

08/17/2013 at 04:08AM

29
#59 - Jonathan Kim / @jonnykim

08/27/2013 at 07:53PM

29
#60 - Sam Burk / @smwbk

12/22/2013 at 05:43PM