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 by @GavinKoeng:

Unlock 14 remaining solutions by signing in and submitting your own entry
Created by: @pklingem

115 active golfers, 378 entries

Solutions by @GavinKoeng:
25
#15 - Gavin / @GavinKoeng

06/17/2026 at 01:34AM

26
#>37 - Gavin / @GavinKoeng

06/17/2026 at 01:32AM

27
#>44 - Gavin / @GavinKoeng

06/17/2026 at 01:32AM

28
#>53 - Gavin / @GavinKoeng

06/17/2026 at 01:31AM

29
#>60 - Gavin / @GavinKoeng

06/17/2026 at 01:31AM

30
#>67 - Gavin / @GavinKoeng

06/17/2026 at 01:30AM

31
#>75 - Gavin / @GavinKoeng

06/17/2026 at 01:30AM

32
#>80 - Gavin / @GavinKoeng

06/17/2026 at 01:30AM

33
#>88 - Gavin / @GavinKoeng

06/17/2026 at 01:29AM

35
#>95 - Gavin / @GavinKoeng

06/17/2026 at 01:27AM

36
#>98 - Gavin / @GavinKoeng

06/17/2026 at 01:21AM

38
#>102 - Gavin / @GavinKoeng

06/17/2026 at 01:20AM

40
#>105 - Gavin / @GavinKoeng

06/17/2026 at 01:18AM

42
#>105 - Gavin / @GavinKoeng

06/17/2026 at 01:17AM