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 546a627195f6da000265742d

Pretty format for variable declarations

Project standards demand the equal signs must be aligned for better readability.

Start file
var parser = require('../src/grammar.js'),
    src = require('../src/blueberry.js'),
    fs = require('fs'),
    glob = require('glob');
End file
var parser = require('../src/grammar.js'),
    src    = require('../src/blueberry.js'),
    fs     = require('fs'),
    glob   = require('glob');

View Diff

2,4c2,4
<     src = require('../src/blueberry.js'),
<     fs = require('fs'),
<     glob = require('glob');
\ No newline at end of file
---
>     src    = require('../src/blueberry.js'),
>     fs     = require('fs'),
>     glob   = require('glob');
\ No newline at end of file

Solutions by @GavinKoeng:

Unlock 9 remaining solutions by signing in and submitting your own entry
Created by: @gosukiwi

66 active golfers, 183 entries

Solutions by @GavinKoeng:
13
#6 - Gavin / @GavinKoeng

04/26/2026 at 10:14AM

13
#>6 - Gavin / @GavinKoeng

04/26/2026 at 10:14AM

14
#>26 - Gavin / @GavinKoeng

04/26/2026 at 10:13AM

15
#>34 - Gavin / @GavinKoeng

04/26/2026 at 10:11AM

16
#>38 - Gavin / @GavinKoeng

04/26/2026 at 10:11AM

17
#>44 - Gavin / @GavinKoeng

04/26/2026 at 10:11AM

18
#>51 - Gavin / @GavinKoeng

04/26/2026 at 10:11AM

19
#>54 - Gavin / @GavinKoeng

04/26/2026 at 10:10AM

20
#>55 - Gavin / @GavinKoeng

04/26/2026 at 10:10AM