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):
15
#31 - Matt / @mcr05

02/27/2015 at 01:17PM

15
#32 - xieyh11 / @xieyh11

02/28/2015 at 09:14AM

15
#33 - pftb12345 / @pftb12345

04/30/2015 at 04:46AM

16
#34 - Kai Yuan / @kentyuan

11/17/2014 at 10:17PM

16
#35 - mnx / @mnxx

11/20/2014 at 11:41AM

16
#36 - Test User / @TestUserIgnore

12/04/2014 at 10:14PM

16
#37 - mark0829 / @mark0829

02/02/2015 at 01:01PM

17
#38 - James / @Dronak

11/17/2014 at 11:43PM

17
#39 - Zapata / @Incredible_JFP

12/02/2014 at 09:57AM

17
#40 - Oliver Christ / @0liverChrist

02/08/2015 at 09:10PM

17
#41 - Andrew Michaud / @andrewjmichaud

09/04/2015 at 08:51AM

17
#42 - RockerZZY / @rocker_zzy

06/06/2020 at 02:23AM

18
#43 - Steve Tjoa / @stevetjoa

11/17/2014 at 10:14PM

18
#44 - tacke / @tacke_jp

11/22/2014 at 05:30AM

18
#45 - Andy Tockman / @atckmn

11/22/2014 at 01:46PM

18
#46 - Mattiassich Ákos / @mattiassicha

12/01/2014 at 05:37PM

18
#47 - Rao Zvorovski / @RaoZvorovski

12/06/2014 at 07:10PM

18
#48 - Linda Liu / @_lindaliu_

02/20/2015 at 03:18AM

18
#49 - Dmitry Zudochkin / @zudochkin

02/20/2015 at 11:40AM

19
#50 - Lachlan Easton / @LBEaston

11/18/2014 at 02:53PM

19
#51 - Gurukandhamoorthi / @Gurukandhamoor1

08/24/2017 at 03:57PM

19
#52 - Ben Hill / @KaizenSoze70

09/26/2017 at 06:08PM

20
#53 - Jack Z / @itszhou

06/28/2015 at 08:48PM

21
#54 - luffy / @raxcoi

06/13/2015 at 03:15PM

21
#55 - Иван / @wansmer

04/24/2023 at 05:17PM

21
#56 - Olivier Bégassat / @zk_evm

06/14/2023 at 08:26PM

22
#57 - Jan Novak / @odpadnimail

11/18/2014 at 09:48PM

22
#58 - Alex Bartol / @alexbartol

05/06/2015 at 06:06AM

23
#59 - ltn614 / @ltn614

09/24/2015 at 06:37AM

23
#60 - BitLad / @BitLad

01/30/2018 at 07:35PM