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 @nickandbro:

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

64 active golfers, 170 entries

Solutions by @nickandbro:
13
#5 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

14
#>25 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

15
#>33 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

16
#>37 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

17
#>42 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

18
#>49 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

19
#>52 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

20
#>53 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

21
#>56 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

22
#>58 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

23
#>61 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

26
#>62 - nickGPT / @nickandbro

08/28/2024 at 04:55AM

28
#>63 - nickGPT / @nickandbro

08/28/2024 at 04:55AM

31
#>64 - nickGPT / @nickandbro

08/28/2024 at 04:55AM