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

385 active golfers, 942 entries

Leaderboard (lowest score wins):
12
#151 - Eric Söderström / @eksoderstrom

07/20/2012 at 02:50PM

12
#152 - Glen / @Glen_S

07/21/2012 at 03:15AM

12
#153 - Christopher Brew / @Seph1rothVII

07/24/2012 at 09:14PM

12
#154 - William Dunand / @wdunand

07/27/2012 at 05:48AM

12
#155 - Chris Brown / @engineercyb

07/31/2012 at 08:41PM

12
#156 -  Ikhsan Maulana / @ixandidu

08/18/2012 at 03:20PM

12
#157 - vansan / @VinceVansan

08/23/2012 at 05:41PM

12
#158 - Maksim S. / @waynesayonara

09/08/2012 at 10:52PM

12
#159 - mhb / @mhbvim

09/18/2012 at 09:45AM

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

10/09/2012 at 07:02PM

12
#161 - Tom Cammann / @tea_sea

10/10/2012 at 12:11AM

12
#162 - Dan Goldstein / @dggoldst

10/15/2012 at 08:59PM

12
#163 - Jason Wolf / @zephyr_wolf

11/08/2012 at 01:44PM

12
#164 - Matt Walker / @_walkermatt

11/28/2012 at 07:55AM

12
#165 - Marcin Szamotulski / @me_coot

11/28/2012 at 07:37PM

12
#166 - Runar / @runarfu

01/11/2013 at 12:24PM

12
#167 - Trevor Powell / @DoomedBunnies

03/20/2013 at 02:05AM

12
#168 - Tyler / @tylerbindon

04/03/2013 at 07:33PM

12
#169 - Justin / @justinjaffray

04/28/2013 at 06:46PM

12
#170 - r00tine / @r00tine

05/01/2013 at 06:29PM

12
#171 - 张文远 / @zhwenyuan

05/20/2013 at 01:57PM

12
#172 - curist / @curist

07/09/2013 at 04:16AM

12
#173 - Aaron Bieber / @aaronbieber

07/16/2013 at 11:50PM

12
#174 - Roland Schatz / @fl_Overmind

07/18/2013 at 03:43PM

12
#175 - Nathan / @NathanHarperoni

08/08/2013 at 01:39PM

12
#176 - Bart of Denver / @bartofdenver

08/12/2013 at 03:30PM

12
#177 - Ed Zukowski / @dataoverflow

08/27/2013 at 04:25PM

12
#178 - Luis Visintini / @lvisintini

08/27/2013 at 06:51PM

12
#179 - Tim / @timwr

08/27/2013 at 07:10PM

12
#180 - Hachez Floran / @FloranHachez

09/03/2013 at 07:08PM