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):
13
#1 - Janzen / @__Coos

09/30/2022 at 02:05PM

13
#2 - John Braxler / @braxler

10/11/2022 at 04:59PM

13
#3 - Jean George / @JeanGeo20504212

10/16/2023 at 12:05AM

13
#4 - Peppa Pig / @PeppaPi95550250

07/03/2024 at 03:42AM

13
#5 - nickGPT / @nickandbro

08/28/2024 at 04:56AM

14
#6 - Petro Тrouq / @zulolosi

11/17/2014 at 09:26PM

14
#7 - Urtica dioica / @udioica

11/17/2014 at 09:41PM

14
#8 - Hans Liu / @zhansliu

11/17/2014 at 10:42PM

14
#9 - Eduardo / @earada

11/18/2014 at 09:46AM

14
#10 - Yuriy / @skriyka

11/18/2014 at 11:00PM

14
#11 - Jakob / @jajob

11/21/2014 at 07:38AM

14
#12 - Carlos López / @morrizon

11/28/2014 at 09:40AM

14
#13 - Dane Summers / @dsummersl

11/29/2014 at 03:38AM

14
#14 - Ivan Brennan / @ivanbrennan

11/29/2014 at 09:49PM

14
#15 - John Diamond / @jcdmnd

12/07/2014 at 03:58PM

14
#16 - Carlos A Henríquez Q / @lagunex

01/17/2015 at 06:54PM

14
#17 - Jake Eskel / @JakeEskel

01/27/2015 at 03:36PM

14
#18 - Walker Boh / @walker_boh

11/04/2015 at 01:06PM

14
#19 - Jon Krause / @jkrause314

01/14/2016 at 05:50PM

14
#20 - Daniel / @Daniel00288663

04/06/2017 at 03:10PM

14
#21 - Turkey Man / @lvturkeyman

12/07/2017 at 10:19AM

14
#22 - russellzhaomao / @russellzhaomao

06/22/2022 at 10:50AM

14
#23 - Alex / @AlexanderHeatl2

07/08/2022 at 08:49PM

14
#24 - ¥u Dev / @yu-d

01/13/2024 at 03:18AM

14
#25 - Berel94 / @Berel94

03/25/2024 at 09:11PM

15
#26 - CJ Avilla / @cjav_dev

11/18/2014 at 04:55PM

15
#27 - Matt Robbins / @mcrmfc

11/19/2014 at 06:42AM

15
#28 -  River / @glacialrd

11/21/2014 at 08:30AM

15
#29 - Glauco Pires / @grpires

11/24/2014 at 11:56PM

15
#30 - kobby / @_kafdot_

12/14/2014 at 11:39PM