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 505cb13a52512d000200002b

you're stuck on jQuery < 1.7

replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`

Start file
    $('li.assessment_question').on('click', 'a.add_question_addendum', @openQuestionAddendumForm)
    $('li.assessment_question').on('click', 'a.cancel_question_addendum', @cancelQuestionAddendum)
    $('li.assessment_question').on('ajax:beforeSend', 'form.question_addendum_form', @hideFormEnableAddAddendumLink)
    $('li.assessment_question').on('ajax:success', 'form.question_addendum_form', @appendQuestionAddendum)
End file
    $('a.add_question_addendum').bind('click', @openQuestionAddendumForm)
    $('a.cancel_question_addendum').bind('click', @cancelQuestionAddendum)
    $('form.question_addendum_form').bind('ajax:beforeSend', @hideFormEnableAddAddendumLink)
    $('form.question_addendum_form').bind('ajax:success', @appendQuestionAddendum)

View Diff

1,4c1,4
<     $('li.assessment_question').on('click', 'a.add_question_addendum', @openQuestionAddendumForm)
<     $('li.assessment_question').on('click', 'a.cancel_question_addendum', @cancelQuestionAddendum)
<     $('li.assessment_question').on('ajax:beforeSend', 'form.question_addendum_form', @hideFormEnableAddAddendumLink)
<     $('li.assessment_question').on('ajax:success', 'form.question_addendum_form', @appendQuestionAddendum)
---
>     $('a.add_question_addendum').bind('click', @openQuestionAddendumForm)
>     $('a.cancel_question_addendum').bind('click', @cancelQuestionAddendum)
>     $('form.question_addendum_form').bind('ajax:beforeSend', @hideFormEnableAddAddendumLink)
>     $('form.question_addendum_form').bind('ajax:success', @appendQuestionAddendum)

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 77 remaining solutions by signing in and submitting your own entry
#78 Brian / wyantb_reader - Score: 34 - 06/26/14 @ 02:54
qqWdf'^2lvf'p3lcebind<Esc>f,xxj^q3@qZZ

0 comments

#79 Cerborr Rizescu / dutenpizdamatii - Score: 34 - 12/21/15 @ 16:01
qqWdf'^2lvf'p3lcebind<Esc>f,xxj^q3@qZZ

0 comments

#80 Justin Knag / justinknag - Score: 35 - 08/28/14 @ 16:41
qalldt)llcwbind<C-C><C-C>f,xxdt,F)P^jq3@aZZ

0 comments

#81 Martin Liberg / marreman - Score: 35 - 02/07/15 @ 18:20
qq2focwbind<Esc>f,dwda'Fqva'pj0@q<Esc>q@qZZ

0 comments

#82 Federico Bond / federicobond - Score: 36 - 09/22/12 @ 23:07
qq5f'df'3F'vF'pfocwbind<Esc>f,xxj0q3@qZZ

0 comments

#83 Stephen / StephenPek - Score: 36 - 10/03/12 @ 04:27
qqlldf("adf f,i).bind(<C-R>a<BS><BS><Esc>+q3@q:wq<CR>

0 comments

#84 Rob Grijs / robgrijs - Score: 36 - 10/15/12 @ 18:25
qq5f'df'4F'vf'p3lcebind<Esc>f,2xj0q3@qZZ

0 comments

#85 Patrick Klingemann / pklingem - Score: 38 - 09/21/12 @ 18:27
qq5f'ldt'5T'vt'pfocebind<Esc>f,dt,0jq3@qZZ

0 comments

#86 Nicholas Amina / apolatg - Score: 38 - 09/21/12 @ 19:25
qqW"adt@F.lcwbind<Esc>F)di)"aPxX^jq3@q:wq<CR>

0 comments

#87 S. Brent Faulkner / sbfaulkner - Score: 38 - 10/04/12 @ 04:05
qqdf)wcwbind<Esc>W"adf'xx^i$()<Esc>"aPj^q3@qZZ

0 comments

#88 Tom Cammann / tea_sea - Score: 38 - 10/09/12 @ 23:17
qqwdi)wcwbind<Esc>f,wdf'^lpf,xx^j@qq@q:wq<CR>

0 comments

#89 wilddog64 / chengkai318 - Score: 39 - 12/21/13 @ 19:18
qqda'focwbind<Esc>3f'"ada'x2F("apBhxjq3@qZZ

0 comments

#90 Phil / ischi - Score: 40 - 12/28/12 @ 08:57
qq5wcwbind<Esc>3f'vf'"ad2x3F'vF'"apF$jq3@qZZ

0 comments

#91 Nik / mudpile45 - Score: 46 - 10/04/12 @ 03:23
qif,f'l"adt'F,ldf,F.lcwbind<Esc>F'dT'"aPj^q3@i:wq<CR>

0 comments

#92 James Cash / jamesnvc - Score: 47 - 09/22/12 @ 16:11
fo;<C-V>Gf(;hcbind<Esc>qqf lda'"_x0f'"_da'P`[xjf(q3@qZZ

0 comments

#93 makala noble / mnoble01 - Score: 47 - 11/13/12 @ 03:46
fo;<C-V>Gf(;hcbind<Esc>qqf lda'"_x0f'"_da'P`[xjf(q3@qZZ

0 comments

#94 Jon Cairns / joonty - Score: 50 - 10/05/12 @ 11:34
:%s/'.*(\(.*\), \(.*\), \(.*\)/\2).bind(\1, \3<CR>:x<CR>

0 comments

#95 jason_bailey / jason_bailey - Score: 53 - 10/04/12 @ 04:20
:%s/'.*(\(.*\), \(.*\), \(.*\)/\2).bind(\1, \3<CR>:w<CR>:q<CR>

0 comments

#96 Adam MᶜDaniel / adamrmcd - Score: 70 - 11/16/12 @ 23:02
:%s/\( *\).*on(\('.*'\), \('.*'\), \(.*\))$/\1\$(\3).bind(\2, \4)/<CR>:x<CR>

0 comments

#97 Underhill Labs / underhilllabs - Score: 96 - 10/29/12 @ 14:03
Wda'^<Right><Right>P<Down>Wda'^<Right><Right>P<Right>da'<Up><Left><Left><Left>da'<Down><Down>Wda'^<Right><Right>P<Right>da'<Down>Wda'^<Right><Right>P<Right>da':%s/\.on/.bind/<CR>gg<Right><Right>x<Down>x<Down>x<Down>x:%s/,,/,/<CR>:wq<CR>

0 comments

Created by: pklingem

97 active golfers, 298 entries

Leaderboard (lowest score wins):
25
#1 - Conner McDaniel / connermcd

09/23/2012 at 02:23PM

25
#2 - Justin Love / wondible

09/29/2012 at 03:05AM

25
#3 - Victor Ramirez / virako

10/15/2012 at 01:11AM

25
#4 - Urtica dioica / udioica

11/15/2012 at 04:44AM

25
#5 - Jimmy Mabey / mabeyj

11/23/2012 at 03:26AM

25
#6 - Chase Stubblefield / sterlingchase

05/01/2013 at 04:17AM

25
#7 - Marco Hinz / _mhinz_

05/28/2013 at 10:09AM

25
#8 - Petro Тrouq / zulolosi

06/07/2013 at 10:00PM

25
#9 - Stefan Schmidt / stafue

12/06/2013 at 03:37PM

25
#10 - Yann Moisan / YannMoisan

01/03/2014 at 10:44PM

25
#11 - Joonas Pihlajamaa / jokkebk

02/25/2014 at 02:04PM

25
#12 - John Braxler / braxler

04/15/2014 at 08:30PM

25
#13 - Jon Krause / jkrause314

01/01/2016 at 08:08AM

26
#14 - 無ん垢の叫び / john_ababa

09/22/2012 at 10:16AM

26
#15 - Emile Swarts / EmileSwarts

09/23/2012 at 08:53PM

26
#16 - tmr / tmr314

09/24/2012 at 12:53PM

26
#17 - Marcin Sza / coot_

09/26/2012 at 04:27PM

26
#18 - Radek / qrczeno

10/09/2012 at 09:21PM

26
#19 - Nathan / boysetsfrog

10/13/2012 at 08:47AM

26
#20 - Roman Makarenko / rmakarenko

10/14/2012 at 04:34PM

26
#21 - Jaime A. Sánchez / jashbeta

10/20/2012 at 04:13AM

26
#22 - Édouard M'tou / DouardM

10/21/2012 at 08:00AM

26
#23 - Jouke-Thiemo Waleson / jtwaleson

11/08/2012 at 09:32PM

26
#24 - marmelad / jordgubbssylt

11/16/2012 at 11:24PM

26
#25 - Dave Ingram / dmi

11/21/2012 at 06:12PM

26
#26 - Dom Armstrong / dom_cycleface

09/26/2013 at 01:16PM

26
#27 - Jared Meyering / Jmeyering

02/24/2014 at 10:55PM

26
#28 - Pedro Santos / pedrosans

03/28/2014 at 08:06PM

26
#29 - Mauro Persano / fzort

11/22/2014 at 03:31PM

27
#30 - h_east (トロッコ6個) / h_east

09/21/2012 at 08:11PM

27
#31 - Sergey Doroshenko / dorserg

09/22/2012 at 06:55AM

27
#32 - Adit Cahya Ramadhan / aditcr8

09/22/2012 at 10:09PM

27
#33 - Damien Chilot / duser_2

10/06/2012 at 09:29PM

27
#34 - Corey Glynn / albedoa

10/10/2012 at 03:10AM

27
#35 - Javier Blanco / jbgutierrez

12/26/2012 at 06:54PM

27
#36 - Bradd Szonye / bszonye

07/13/2013 at 01:42PM

28
#37 - Kerson Hsiao / KersonHsiao

09/21/2012 at 06:42PM

28
#38 - Domon / Domon

09/25/2012 at 09:07AM

28
#39 - Mathias Rav / iaddquotes

11/13/2012 at 11:06PM

28
#40 - Nathan / NathanHarperoni

08/05/2013 at 05:57PM

28
#41 - Hachez Floran / FloranHachez

09/07/2013 at 08:36AM

28
#42 - Matt Green / emgeeeeee

09/15/2013 at 04:06AM

28
#43 - Caek / Caek_

08/18/2014 at 04:52AM

28
#44 - Matthieu Crapet / mcr05

12/11/2014 at 05:11PM

29
#45 - Aaron Spiegel / spiegela

09/23/2012 at 06:16PM

29
#46 - Glen / Glen_S

09/29/2012 at 07:17AM

29
#47 - Darcy Parker / DarcyParker

10/15/2012 at 03:38PM

29
#48 - Bruce Woodward / Bruce_Woodward

07/12/2013 at 11:48PM

29
#49 - Woojung Kim 김우중 / _kimwz

07/15/2013 at 10:25AM

29
#50 - hiro / oahiroaki

02/25/2014 at 10:05AM

30
#51 - Trevor Powell / DoomedBunnies

09/26/2012 at 05:20AM

30
#52 - Anders Janmyr / andersjanmyr

10/13/2012 at 12:59PM

30
#53 - Ram Tamtam / ramtamtamtam

06/30/2014 at 02:29PM

30
#54 - Walker Boh / walker_boh

11/18/2015 at 09:41AM

31
#55 - Gregor Schmidt / schmidtwisser

09/27/2012 at 08:26AM

31
#56 - Loki, Ng Ka Long / loki_nkl

09/28/2012 at 08:04AM

31
#57 - Piotr H / PiotrHuk

09/28/2012 at 09:46AM

31
#58 - Einar Lielmanis / spicausis

11/07/2012 at 05:13PM

31
#59 - a24f0600 / a24f0600

11/30/2012 at 01:30PM

31
#60 - Alexander Gyoshev / alex_gyoshev

10/30/2013 at 01:17PM

31
#61 - Quota / Quotad

02/10/2014 at 03:32PM

31
#62 - r. / rmarvie

12/20/2014 at 09:32PM

32
#63 - John Whitley / johnwhitley

10/01/2012 at 09:53PM

32
#64 - brett / brettyukich

09/22/2013 at 04:47AM

32
#65 - Karun Ramakrishnan / the_karun

12/20/2013 at 09:47PM

32
#66 - Andreas Carben / meiner_eins

09/27/2015 at 12:50PM

33
#67 - Thorsten Ball / thorstenball

10/15/2012 at 11:26AM

33
#68 - Alex Klen / AlexanderKlen

10/29/2012 at 07:27AM

33
#69 - Rey Wright / reywright

11/29/2012 at 12:21AM

33
#70 - arminas / arminas

07/11/2013 at 08:18AM

33
#71 - cj / cj01101

08/15/2013 at 02:43PM

33
#72 - Mathieu Larouche / matdube

11/27/2013 at 10:59PM

33
#73 - James / Dronak

09/25/2014 at 10:52PM

33
#74 - ltn614 / ltn614

09/25/2015 at 09:28AM

34
#75 - Tallak Tveide / tallakt

11/01/2012 at 09:44AM

34
#76 - Oliver Christ / 0liverChrist

09/27/2013 at 10:40PM

34
#77 - Milind Ganjoo / mganjoo

01/22/2014 at 04:56AM

34
#78 - Brian / wyantb_reader

06/26/2014 at 02:54AM

34
#79 - Cerborr Rizescu / dutenpizdamatii

12/21/2015 at 04:01PM

35
#80 - Justin Knag / justinknag

08/28/2014 at 04:41PM

35
#81 - Martin Liberg / marreman

02/07/2015 at 06:20PM

36
#82 - Federico Bond / federicobond

09/22/2012 at 11:07PM

36
#83 - Stephen / StephenPek

10/03/2012 at 04:27AM

36
#84 - Rob Grijs / robgrijs

10/15/2012 at 06:25PM

38
#85 - Patrick Klingemann / pklingem

09/21/2012 at 06:27PM

38
#86 - Nicholas Amina / apolatg

09/21/2012 at 07:25PM

38
#87 - S. Brent Faulkner / sbfaulkner

10/04/2012 at 04:05AM

38
#88 - Tom Cammann / tea_sea

10/09/2012 at 11:17PM

39
#89 - wilddog64 / chengkai318

12/21/2013 at 07:18PM

40
#90 - Phil / ischi

12/28/2012 at 08:57AM

46
#91 - Nik / mudpile45

10/04/2012 at 03:23AM

47
#92 - James Cash / jamesnvc

09/22/2012 at 04:11PM

47
#93 - makala noble / mnoble01

11/13/2012 at 03:46AM

50
#94 - Jon Cairns / joonty

10/05/2012 at 11:34AM

53
#95 - jason_bailey / jason_bailey

10/04/2012 at 04:20AM

70
#96 - Adam MᶜDaniel / adamrmcd

11/16/2012 at 11:02PM

96
#97 - Underhill Labs / underhilllabs

10/29/2012 at 02:03PM