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

Remove semicolons after expressions

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

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 260 remaining solutions by signing in and submitting your own entry
#261 Noel Alejandro / @noelrock333 - Score: 15 - 06/23/12 @ 00:03
:%s/;//<CR>:w<CR><Esc>:q<CR>

0 comments


#262 Samuel Masuy / @samasuy - Score: 15 - 07/24/14 @ 16:06
qaI<Esc>A<BS><Esc>jjq3@aZZ

0 comments


Created by: @laurilehmijoki

262 active golfers, 648 entries

Leaderboard (lowest score wins):
6
#1 - Urtica dioica / @udioica

06/02/2012 at 04:39PM

6
#2 - Tim Chase / @gumnos

06/02/2012 at 04:48PM

6
#3 - Alain Gilbert / @alain_gilbert

06/02/2012 at 05:16PM

6
#4 - Sebastian Kusnier / @skusnier

06/02/2012 at 06:25PM

6
#5 - Federico Galassi / @federicogalassi

06/02/2012 at 08:44PM

6
#6 - h_east (トロッコ6個) / @h_east

06/03/2012 at 01:48AM

6
#7 - akhilravidas / @akhilravidas

06/03/2012 at 10:25AM

6
#8 - Rod Knowlton / @codelahoma

06/03/2012 at 06:11PM

6
#9 - Sergey / @sav86

06/04/2012 at 12:19AM

6
#10 - Benson Kim / @BensonRLA

06/05/2012 at 03:29PM

6
#11 - Benoit Mortgat / @Benoit_Mortgat

06/05/2012 at 06:50PM

6
#12 - Paul Gessler / @pdgessler

06/07/2012 at 04:38AM

6
#13 - Kerson Hsiao / @KersonHsiao

06/07/2012 at 10:52AM

6
#14 - Dave / @zzdave13

06/07/2012 at 08:41PM

6
#15 - utopiah / @utopiah

06/08/2012 at 01:04PM

6
#16 - Drew Hannay / @drewhannay

06/09/2012 at 07:07AM

6
#17 - Joakim L. Engeset / @joakim_eng

06/11/2012 at 05:35PM

6
#18 - Rolf Bjaanes / @rolfb

06/15/2012 at 02:08PM

6
#19 - noom narze / @NarzE

06/18/2012 at 06:16AM

6
#20 - Ryan O'Connell / @Salshammath

06/21/2012 at 12:58AM

6
#21 - Greg Sabo / @gregsabo

06/21/2012 at 04:25AM

6
#22 - Ilya Ermolin / @ermolinis

06/21/2012 at 03:41PM

6
#23 - mwatkward / @AftrschoolSpe

06/22/2012 at 12:01PM

6
#24 - abernardes / @abernardes

06/22/2012 at 03:40PM

6
#25 - Ryan Kois / @r_kois

06/23/2012 at 06:11PM

6
#26 - Raúl Jara / @rauljara

07/06/2012 at 08:56PM

6
#27 - Sebastian Korten / @FlashKorten

07/15/2012 at 03:32PM

6
#28 - wes / @_weslly

07/16/2012 at 04:20PM

6
#29 - Oliver Mader / @dotb52

07/17/2012 at 07:10AM

6
#30 - Ben Alpert / @soprano

07/17/2012 at 09:07AM