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):
11
#1 - Urtica dioica / @udioica

06/02/2012 at 06:17PM

11
#2 - Federico Galassi / @federicogalassi

06/02/2012 at 08:44PM

11
#3 - Sergey / @sav86

06/04/2012 at 12:13AM

11
#4 - Sebastian Kusnier / @skusnier

06/04/2012 at 05:50PM

11
#5 - Tim Chase / @gumnos

06/05/2012 at 01:53AM

11
#6 - Drew Hannay / @drewhannay

06/09/2012 at 07:15AM

11
#7 - Jacek Wysocki / @ex00

06/14/2012 at 10:11AM

11
#8 - Greg Sabo / @gregsabo

06/21/2012 at 04:31AM

11
#9 - mwatkward / @AftrschoolSpe

06/22/2012 at 11:53AM

11
#10 - Ryan O'Connell / @Salshammath

06/23/2012 at 01:11PM

11
#11 - Brandon Montgomery / @bmonty

06/23/2012 at 02:02PM

11
#12 - Vasil Sakarov / @vsakarov

06/26/2012 at 09:50AM

11
#13 - John Dahlström / @dahlstromjohn

06/27/2012 at 09:15PM

11
#14 - Raúl Jara / @rauljara

07/06/2012 at 08:16PM

11
#15 - Wei Dai / @clvv42

07/12/2012 at 08:42PM

11
#16 - John Piasetzki / @jpiasetz

07/13/2012 at 06:21AM

11
#17 - shark dick / @DickShark

07/13/2012 at 02:09PM

11
#18 - Sebastian Korten / @FlashKorten

07/16/2012 at 11:21AM

11
#19 - wes / @_weslly

07/16/2012 at 04:12PM

11
#20 - Benoit Thiell / @benoitthiell

07/20/2012 at 01:38PM

11
#21 - mlu / @_mlu

07/23/2012 at 01:03PM

11
#22 - Sean Griffin / @sgrif

08/13/2012 at 02:49AM

11
#23 - retired account / @retired10072015

08/21/2012 at 08:40AM

11
#24 - Petri Rosenström / @wuzuuz

08/21/2012 at 05:48PM

11
#25 - Joseph J. Piché / @jjpiche

09/02/2012 at 04:43PM

11
#26 - Joe Nelson / @begriffs

09/03/2012 at 09:54PM

11
#27 - Conner McDaniel / @connermcd

09/18/2012 at 04:34AM

11
#28 - Vim rocks / @vimrocks

10/07/2012 at 01:36PM

11
#29 - Victor Ramirez / @virako

10/13/2012 at 02:13AM

11
#30 - Saxon Unrue / @joeunrue

11/09/2012 at 01:21PM