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

370 active golfers, 898 entries

Leaderboard (lowest score wins):
13
#271 - Asmund / @herrasbe

01/11/2013 at 08:57PM

13
#272 - Reed Riley / @ReedRile

01/17/2013 at 01:01AM

13
#273 - Andrew Radev / @andrewradev

01/22/2013 at 08:14PM

13
#274 - Pedro Franceschi / @pedroh96

02/05/2013 at 10:23PM

13
#275 - N / @nymph192

02/11/2013 at 07:56PM

13
#276 - Gwilym Kuiper / @gwilymk

07/11/2013 at 08:29PM

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

07/12/2013 at 04:45AM

13
#278 - A / @Tower_1980

08/01/2013 at 09:30AM

13
#279 - cj / @cj01101

08/08/2013 at 12:11PM

13
#280 - David Escribano / @DavidEGx

08/26/2013 at 12:23PM

13
#281 - Oliver Caldwell / @OliverCaldwell

08/27/2013 at 06:37PM

13
#282 - Tim Mower / @timmow

08/27/2013 at 06:50PM

13
#283 - Dom Armstrong / @dom_cycleface

09/10/2013 at 01:00PM

13
#284 - engy / @engydmw

09/24/2013 at 09:39PM

13
#285 - nona urbiz / @nospampleasemam

09/28/2013 at 08:30AM

13
#286 - Karun Ramakrishnan / @the_karun

11/23/2013 at 06:55AM

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

11/26/2013 at 01:18PM

13
#288 - Alessandro Lisander / @wuiimu

01/06/2014 at 09:18AM

13
#289 - Chirag Tailor / @ctailor2

01/29/2014 at 05:17AM

13
#290 - Romain Knezevic / @rkjdid

03/08/2014 at 01:14PM

13
#291 - Solar Powered Robot / @moskrin

05/01/2014 at 03:58PM

13
#292 - 3X4n5 / @3X4n5

05/06/2014 at 02:39PM

13
#293 - Kyle Travis / @kmakai

05/16/2014 at 06:54PM

13
#294 - Alan Sherman / @InfoLeak117

06/03/2014 at 09:54PM

13
#295 - Marco Biasini / @biasmv

07/15/2014 at 07:39PM

13
#296 - Aregon Digital / @AregonDigital

08/09/2014 at 01:35AM

13
#297 - Tj / @yrddy

08/19/2014 at 03:05AM

13
#298 - PLS / @jaegd

08/30/2014 at 01:48AM

13
#299 - Justin Knag / @justinknag

09/07/2014 at 12:14AM

13
#300 - Matthew Leadbetter / @Halty

10/14/2014 at 04:38PM