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

420 active golfers, 1057 entries

Leaderboard (lowest score wins):
12
#151 - Justin Love / @wondible

06/02/2012 at 03:37PM

12
#152 - Alain Gilbert / @alain_gilbert

06/02/2012 at 05:14PM

12
#153 - Jonathan Lozinski / @jlozinski

06/02/2012 at 07:13PM

12
#154 - John Whitley / @johnwhitley

06/03/2012 at 01:37AM

12
#155 - Rod Knowlton / @codelahoma

06/03/2012 at 05:53PM

12
#156 - mnx / @mnxx

06/03/2012 at 10:24PM

12
#157 - Javier Blanco / @jbgutierrez

06/04/2012 at 10:31PM

12
#158 - captain_morgan / @captain_morgan

06/05/2012 at 09:37AM

12
#159 - Benson Kim / @BensonRLA

06/05/2012 at 05:02PM

12
#160 - Benoit Mortgat / @Benoit_Mortgat

06/05/2012 at 06:53PM

12
#161 - Simian Apey / @SimianApey

06/12/2012 at 08:17AM

12
#162 - RusAlex Pletnev / @RusAlexander

06/17/2012 at 01:29PM

12
#163 - abernardes / @abernardes

06/21/2012 at 04:02PM

12
#164 - Jaime A. Sánchez / @jashbeta

07/15/2012 at 02:15PM

12
#165 - Tom Sisk / @TomSisk

07/19/2012 at 09:20PM

12
#166 - Eric Söderström / @eksoderstrom

07/20/2012 at 02:50PM

12
#167 - Glen / @Glen_S

07/21/2012 at 03:15AM

12
#168 - Christopher Brew / @Seph1rothVII

07/24/2012 at 09:14PM

12
#169 - William Dunand / @wdunand

07/27/2012 at 05:48AM

12
#170 - Chris Brown / @engineercyb

07/31/2012 at 08:41PM

12
#171 -  Ikhsan Maulana / @ixandidu

08/18/2012 at 03:20PM

12
#172 - vansan / @VinceVansan

08/23/2012 at 05:41PM

12
#173 - Maksim S. / @waynesayonara

09/08/2012 at 10:52PM

12
#174 - mhb / @mhbvim

09/18/2012 at 09:45AM

12
#175 - Édouard M'tou / @DouardM

10/09/2012 at 07:02PM

12
#176 - T / @tea_sea

10/10/2012 at 12:11AM

12
#177 - Dan Goldstein / @dggoldst

10/15/2012 at 08:59PM

12
#178 - Jason Wolf / @zephyr_wolf

11/08/2012 at 01:44PM

12
#179 - Matt Walker / @_walkermatt

11/28/2012 at 07:55AM

12
#180 - Marcin Szamotulski / @me_coot

11/28/2012 at 07:37PM