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):
29
#61 - Mauro Persano / @fzort

11/16/2014 at 01:30PM

30
#62 - Claudio Ortolina / @cloud8421

11/27/2012 at 09:03PM

30
#63 - Chasetopher / @chasetopherlee

04/29/2013 at 05:28AM

30
#64 - Woojung Kim 김우중 / @_kimwz

07/15/2013 at 10:35AM

30
#65 - Rolinh / @Rolinh42

03/14/2014 at 07:28AM

30
#66 - ltn614 / @ltn614

09/30/2015 at 03:18PM

30
#67 - caplod / @caplod

03/30/2017 at 12:02PM

31
#68 - Zach Kemp / @zvksf

12/13/2013 at 11:21PM

31
#69 - Reuben Narkwo / @reubwo

03/31/2017 at 07:33AM

32
#70 - w1zeman1p / @wizemanip

05/10/2014 at 04:03AM

34
#71 - Ryan van Rensburg / @rdvr001

07/23/2016 at 12:48PM

37
#72 - Eric Andres / @eric_m_andres

12/04/2012 at 09:37PM

37
#73 - Jesse Nazario / @JesseNazario

04/19/2013 at 06:58PM

38
#74 - Joshua Travis / @jktravis

11/28/2012 at 02:29AM

38
#75 - Ravi S Sinha / @ambidextrousTx

11/28/2012 at 11:49PM

39
#76 - Oliver Christ / @0liverChrist

10/04/2013 at 10:13PM

39
#77 - Gurukandhamoorthi / @Gurukandhamoor1

08/21/2017 at 03:42PM

41
#78 - Tomasz Jureczko / @codehaha

11/27/2012 at 09:01PM

42
#79 - Vimgolf Pikob / @vimgolfpikob

12/02/2012 at 07:00PM

46
#80 - Jim Jones / @zimzumzam

08/14/2013 at 10:23AM

49
#81 - One More Anonymous / @anonymous_joe

04/16/2013 at 01:12PM

54
#82 - Scott Harvey / @scottharveyco

11/29/2012 at 09:23AM

71
#83 - Alexander Berezovsky / @_a0b_

04/30/2013 at 06:51PM

104
#84 - Chris Maguire / @chriswmaguire

11/28/2012 at 03:01PM