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

62 active golfers, 155 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

14
#4 - Petro Тrouq / @zulolosi

11/17/2014 at 09:26PM

14
#5 - Urtica dioica / @udioica

11/17/2014 at 09:41PM

14
#6 - Hans Liu / @zhansliu

11/17/2014 at 10:42PM

14
#7 - Eduardo / @earada

11/18/2014 at 09:46AM

14
#8 - Yuriy / @skriyka

11/18/2014 at 11:00PM

14
#9 - Jakob / @jajob

11/21/2014 at 07:38AM

14
#10 - Carlos López / @morrizon

11/28/2014 at 09:40AM

14
#11 - Dane Summers / @dsummersl

11/29/2014 at 03:38AM

14
#12 - Ivan Brennan / @ivanbrennan

11/29/2014 at 09:49PM

14
#13 - John Diamond / @jcdmnd

12/07/2014 at 03:58PM

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

01/17/2015 at 06:54PM

14
#15 - Jake Eskel / @JakeEskel

01/27/2015 at 03:36PM

14
#16 - Walker Boh / @walker_boh

11/04/2015 at 01:06PM

14
#17 - Jon Krause / @jkrause314

01/14/2016 at 05:50PM

14
#18 - Daniel / @Daniel00288663

04/06/2017 at 03:10PM

14
#19 - Turkey Man / @lvturkeyman

12/07/2017 at 10:19AM

14
#20 - russellzhaomao / @russellzhaomao

06/22/2022 at 10:50AM

14
#21 - Alex / @AlexanderHeatl2

07/08/2022 at 08:49PM

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

01/13/2024 at 03:18AM

14
#23 - Berel94 / @Berel94

03/25/2024 at 09:11PM

15
#24 - CJ Avilla / @cjav_dev

11/18/2014 at 04:55PM

15
#25 - Matt Robbins / @mcrmfc

11/19/2014 at 06:42AM

15
#26 -  River / @glacialrd

11/21/2014 at 08:30AM

15
#27 - Glauco Pires / @grpires

11/24/2014 at 11:56PM

15
#28 - kobby / @_kafdot_

12/14/2014 at 11:39PM

15
#29 - Matt / @mcr05

02/27/2015 at 01:17PM

15
#30 - xieyh11 / @xieyh11

02/28/2015 at 09:14AM