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 51093f4c6db41b0002000003

Define to require

When JSHint is enabled, there's a rule that doesn't let you have more than 6 arguments in a function, so the moment you need to add a 7th argument, you need to do a refactoring.

Start file
define(
    [
        'jquery',
        'underscore',
        'json',
        'benchmark',
        'coffee',
        'beans',
        'hello'
    ],
    function($, _, json, benchmark, coffee, beans, hello) {
    });
End file
define(function(require) {
    var $ = require('jquery');
    var _ = require('underscore');
    var json = require('json');
    var benchmark = require('benchmark');
    var coffee = require('coffee');
    var beans = require('beans');
    var hello = require('hello');
});

View Diff

1,12c1,9
< define(
<     [
<         'jquery',
<         'underscore',
<         'json',
<         'benchmark',
<         'coffee',
<         'beans',
<         'hello'
<     ],
<     function($, _, json, benchmark, coffee, beans, hello) {
<     });
---
> define(function(require) {
>     var $ = require('jquery');
>     var _ = require('underscore');
>     var json = require('json');
>     var benchmark = require('benchmark');
>     var coffee = require('coffee');
>     var beans = require('beans');
>     var hello = require('hello');
> });

Solutions by @virako:

Unlock 4 remaining solutions by signing in and submitting your own entry
Created by: @blingcoder

50 active golfers, 127 entries

Solutions by @virako:
62
#2 - Victor Ramirez / @virako

02/02/2013 at 01:45AM

65
#>11 - Victor Ramirez / @virako

02/02/2013 at 01:32AM

67
#>13 - Victor Ramirez / @virako

02/02/2013 at 01:29AM

80
#>24 - Victor Ramirez / @virako

02/02/2013 at 01:26AM