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

385 active golfers, 942 entries

Leaderboard (lowest score wins):
13
#271 - Arto Vuori / @dhpe

08/31/2012 at 07:36PM

13
#272 - BostX / @BostX

09/06/2012 at 05:10PM

13
#273 - Joachim / @jodles89

09/12/2012 at 12:37AM

13
#274 - John VanderPol / @therealyanamon

09/21/2012 at 08:58PM

13
#275 - Underhill Labs / @underhilllabs

11/03/2012 at 03:49AM

13
#276 - Bunwut Tson / @NbTson

11/08/2012 at 07:46PM

13
#277 - makala noble / @mnoble01

11/13/2012 at 10:06AM

13
#278 - Zbigniew Siciarz / @zsiciarz

11/18/2012 at 08:32PM

13
#279 - . / @cronesan

11/21/2012 at 04:46PM

13
#280 - bob / @vg41

12/21/2012 at 10:43AM

13
#281 - ajh / @AlexJHammel

12/24/2012 at 02:40PM

13
#282 - Global Maquereau / @GlobalMaquereau

12/25/2012 at 08:41PM

13
#283 - Asmund / @herrasbe

01/11/2013 at 08:57PM

13
#284 - Reed Riley / @ReedRile

01/17/2013 at 01:01AM

13
#285 - Andrew Radev / @andrewradev

01/22/2013 at 08:14PM

13
#286 - Pedro Franceschi / @pedroh96

02/05/2013 at 10:23PM

13
#287 - N / @nymph192

02/11/2013 at 07:56PM

13
#288 - Gwilym Kuiper / @gwilymk

07/11/2013 at 08:29PM

13
#289 - Woojung Kim 김우중 / @_kimwz

07/12/2013 at 04:45AM

13
#290 - A / @Tower_1980

08/01/2013 at 09:30AM

13
#291 - cj / @cj01101

08/08/2013 at 12:11PM

13
#292 - David Escribano / @DavidEGx

08/26/2013 at 12:23PM

13
#293 - Oliver Caldwell / @OliverCaldwell

08/27/2013 at 06:37PM

13
#294 - Tim Mower / @timmow

08/27/2013 at 06:50PM

13
#295 - Dom Armstrong / @dom_cycleface

09/10/2013 at 01:00PM

13
#296 - engy / @engydmw

09/24/2013 at 09:39PM

13
#297 - nona urbiz / @nospampleasemam

09/28/2013 at 08:30AM

13
#298 - Karun Ramakrishnan / @the_karun

11/23/2013 at 06:55AM

13
#299 - gary.klindt@googlema / @garstekli

11/26/2013 at 01:18PM

13
#300 - Alessandro Lisander / @wuiimu

01/06/2014 at 09:18AM