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

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 63 remaining solutions by signing in and submitting your own entry
#64 LSMTD / @LSMTD - Score: 31 - 12/09/14 @ 03:33
jf=i   j<BS><Esc>jbbi     <BS><Esc>jBi  <Esc>:wq<CR>

0 comments


Created by: @gosukiwi

64 active golfers, 170 entries

Leaderboard (lowest score wins):
23
#61 - steve / @steve35773420

12/01/2022 at 04:49PM

26
#62 - Edmundo Perez / @ingedmundo

12/04/2014 at 05:32PM

28
#63 - Lieven Keersmaekers / @LievenKeersmaek

11/18/2014 at 06:41PM

31
#64 - LSMTD / @LSMTD

12/09/2014 at 03:33AM