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 4fc9d767d3a0d4000100000e

Append semicolon after expressions

Some lines need the semicolon, some don't.

Start file
var foo

var bar = myCoolStuff()

callRemote()

foo = callTheWorld()
End file
var foo;

var bar = myCoolStuff();

callRemote();

foo = callTheWorld();

View Diff

1c1
< var foo
---
> var foo;
3c3
< var bar = myCoolStuff()
---
> var bar = myCoolStuff();
5c5
< callRemote()
---
> callRemote();
7c7
< foo = callTheWorld()
---
> foo = callTheWorld();

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 366 remaining solutions by signing in and submitting your own entry
#367 Noel Alejandro / @noelrock333 - Score: 38 - 06/23/12 @ 00:08
:4<BS>%s.<BS>/s<BS>)/x<BS>no<BS><BS>/<BS>(<BS>);/<CR>1G7la;<Esc>:w<CR><C-W>q

0 comments


Created by: @laurilehmijoki

367 active golfers, 890 entries

Leaderboard (lowest score wins):
12
#181 - Sam Burk / @smwbk

12/21/2013 at 03:57AM

12
#182 - Matt Parnell / @parnmattdev

01/02/2014 at 11:24PM

12
#183 - Quota / @Quotad

01/27/2014 at 10:46AM

12
#184 - João Paiva / @jgpaiva

01/31/2014 at 11:30AM

12
#185 - Jérémy Autran / @jjautran

01/31/2014 at 01:12PM

12
#186 - Joonas Pihlajamaa / @jokkebk

02/19/2014 at 12:18PM

12
#187 - Timothy Lin / @lzh9102

03/07/2014 at 11:37PM

12
#188 - Patrick Oscity / @der_padde

03/26/2014 at 12:33PM

12
#189 - ZorgroZ / @ZorgroZ

04/11/2014 at 10:07PM

12
#190 - lastsseldon / @lastsseldon

05/10/2014 at 03:25AM

12
#191 - Mark Inksa / @MInksaCS

05/11/2014 at 08:54PM

12
#192 - Hyper Bovine / @hyperbovine

05/12/2014 at 05:31PM

12
#193 - TapTemplate / @TapTemplate

06/25/2014 at 12:59PM

12
#194 - John Meisner / @jmeisned

06/26/2014 at 04:01AM

12
#195 - bXpjE4GzUfnPTRHes1mI / @5DQzMDKJs2VoVt

07/03/2014 at 06:12PM

12
#196 - Ram Tamtam / @ramtamtamtam

07/17/2014 at 10:09AM

12
#197 - Austin Cormier / @lotusmorc

07/18/2014 at 02:28PM

12
#198 - Dmitriy / @_dpy_

08/21/2014 at 08:20PM

12
#199 - kemar / @le_kemar

08/26/2014 at 03:55PM

12
#200 - Dario Avitabile / @tutticapaci

09/14/2014 at 12:39PM

12
#201 - Michael Comerford / @MComerford1

09/25/2014 at 08:53AM

12
#202 - deris / @deris0126

11/07/2014 at 10:21AM

12
#203 - Jake Eskel / @JakeEskel

01/07/2015 at 03:52AM

12
#204 - mark0829 / @mark0829

02/06/2015 at 08:41AM

12
#205 - pftb12345 / @pftb12345

04/09/2015 at 05:35AM

12
#206 - Elizabeth / @sprinkles418

04/15/2015 at 05:46PM

12
#207 - Skúli Jóhannsson / @skulibj

06/28/2015 at 05:40PM

12
#208 - Jon Krause / @jkrause314

12/18/2015 at 09:55PM

12
#209 - fuck GFW / @ravishGFW

01/05/2016 at 05:21AM

12
#210 - Ian Trophy / @prfrgg

02/01/2016 at 12:31PM