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

419 active golfers, 1056 entries

Leaderboard (lowest score wins):
13
#301 - . / @cronesan

11/21/2012 at 04:46PM

13
#302 - bob / @vg41

12/21/2012 at 10:43AM

13
#303 - ajh / @AlexJHammel

12/24/2012 at 02:40PM

13
#304 - Global Maquereau / @GlobalMaquereau

12/25/2012 at 08:41PM

13
#305 - Asmund / @herrasbe

01/11/2013 at 08:57PM

13
#306 - Reed Riley / @ReedRile

01/17/2013 at 01:01AM

13
#307 - @AndrewRadev@hachyderm.io / @andrewradev

01/22/2013 at 08:14PM

13
#308 - Pedro Franceschi / @pedroh96

02/05/2013 at 10:23PM

13
#309 - N / @nymph192

02/11/2013 at 07:56PM

13
#310 - Gwilym Kuiper / @gwilymk

07/11/2013 at 08:29PM

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

07/12/2013 at 04:45AM

13
#312 - A / @Tower_1980

08/01/2013 at 09:30AM

13
#313 - cj / @cj01101

08/08/2013 at 12:11PM

13
#314 - David Escribano / @DavidEGx

08/26/2013 at 12:23PM

13
#315 - Oliver Caldwell / @OliverCaldwell

08/27/2013 at 06:37PM

13
#316 - Tim Mower / @timmow

08/27/2013 at 06:50PM

13
#317 - Dom Armstrong / @dom_cycleface

09/10/2013 at 01:00PM

13
#318 - engy / @engydmw

09/24/2013 at 09:39PM

13
#319 - nona urbiz / @nospampleasemam

09/28/2013 at 08:30AM

13
#320 - Karun Ramakrishnan / @the_karun

11/23/2013 at 06:55AM

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

11/26/2013 at 01:18PM

13
#322 - Alessandro Lisander / @wuiimu

01/06/2014 at 09:18AM

13
#323 - Chirag Tailor / @ctailor2

01/29/2014 at 05:17AM

13
#324 - Romain Knezevic / @rkjdid

03/08/2014 at 01:14PM

13
#325 - Solar Powered Robot / @moskrin

05/01/2014 at 03:58PM

13
#326 - 3X4n5 / @3X4n5

05/06/2014 at 02:39PM

13
#327 - Kyle Travis / @kmakai

05/16/2014 at 06:54PM

13
#328 - Alan Sherman / @InfoLeak117

06/03/2014 at 09:54PM

13
#329 - Marco Biasini / @biasmv

07/15/2014 at 07:39PM

13
#330 - Aregon Digital / @AregonDigital

08/09/2014 at 01:35AM