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 62 remaining solutions by signing in and submitting your own entry
#63 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

63 active golfers, 156 entries

Leaderboard (lowest score wins):
15
#31 - xieyh11 / @xieyh11

02/28/2015 at 09:14AM

15
#32 - pftb12345 / @pftb12345

04/30/2015 at 04:46AM

16
#33 - Kai Yuan / @kentyuan

11/17/2014 at 10:17PM

16
#34 - mnx / @mnxx

11/20/2014 at 11:41AM

16
#35 - Test User / @TestUserIgnore

12/04/2014 at 10:14PM

16
#36 - mark0829 / @mark0829

02/02/2015 at 01:01PM

17
#37 - James / @Dronak

11/17/2014 at 11:43PM

17
#38 - Zapata / @Incredible_JFP

12/02/2014 at 09:57AM

17
#39 - Oliver Christ / @0liverChrist

02/08/2015 at 09:10PM

17
#40 - Andrew Michaud / @andrewjmichaud

09/04/2015 at 08:51AM

17
#41 - RockerZZY / @rocker_zzy

06/06/2020 at 02:23AM

18
#42 - Steve Tjoa / @stevetjoa

11/17/2014 at 10:14PM

18
#43 - tacke / @tacke_jp

11/22/2014 at 05:30AM

18
#44 - Andy Tockman / @atckmn

11/22/2014 at 01:46PM

18
#45 - Mattiassich Ákos / @mattiassicha

12/01/2014 at 05:37PM

18
#46 - Rao Zvorovski / @RaoZvorovski

12/06/2014 at 07:10PM

18
#47 - Linda Liu / @_lindaliu_

02/20/2015 at 03:18AM

18
#48 - Dmitry Zudochkin / @zudochkin

02/20/2015 at 11:40AM

19
#49 - Lachlan Easton / @LBEaston

11/18/2014 at 02:53PM

19
#50 - Gurukandhamoorthi / @Gurukandhamoor1

08/24/2017 at 03:57PM

19
#51 - Ben Hill / @KaizenSoze70

09/26/2017 at 06:08PM

20
#52 - Jack Z / @itszhou

06/28/2015 at 08:48PM

21
#53 - luffy / @raxcoi

06/13/2015 at 03:15PM

21
#54 - Иван / @wansmer

04/24/2023 at 05:17PM

21
#55 - Olivier Bégassat / @zk_evm

06/14/2023 at 08:26PM

22
#56 - Jan Novak / @odpadnimail

11/18/2014 at 09:48PM

22
#57 - Alex Bartol / @alexbartol

05/06/2015 at 06:06AM

23
#58 - ltn614 / @ltn614

09/24/2015 at 06:37AM

23
#59 - BitLad / @BitLad

01/30/2018 at 07:35PM

23
#60 - steve / @steve35773420

12/01/2022 at 04:49PM