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

113 active golfers, 362 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 - Chasetopher / @chasetopherlee

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

25
#14 - Peppa Pig / @PeppaPi95550250

08/24/2024 at 01:27AM

26
#15 - じょんあば / @john_ababa

09/22/2012 at 10:16AM

26
#16 - Emile Swarts / @EmileSwarts

09/23/2012 at 08:53PM

26
#17 - tmr / @tmr314

09/24/2012 at 12:53PM

26
#18 - Marcin Szamotulski / @me_coot

09/26/2012 at 04:27PM

26
#19 - Radek / @qrczeno

10/09/2012 at 09:21PM

26
#20 - Nathan / @boysetsfrog

10/13/2012 at 08:47AM

26
#21 - Roman Makarenko / @rmakarenko

10/14/2012 at 04:34PM

26
#22 - Jaime A. Sánchez / @jashbeta

10/20/2012 at 04:13AM

26
#23 - Édouard M'tou / @DouardM

10/21/2012 at 08:00AM

26
#24 - Jouke-Thiemo Waleson / @jtwaleson

11/08/2012 at 09:32PM

26
#25 - marmelad / @jordgubbssylt

11/16/2012 at 11:24PM

26
#26 - Dave Ingram / @dmi

11/21/2012 at 06:12PM

26
#27 - Dom Armstrong / @dom_cycleface

09/26/2013 at 01:16PM

26
#28 - Jared Meyering / @Jmeyering

02/24/2014 at 10:55PM

26
#29 - Pedro Santos / @pedrosans

03/28/2014 at 08:06PM

26
#30 - Mauro Persano / @fzort

11/22/2014 at 03:31PM