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
#181 - RobertT / @techrt2050

09/22/2013 at 05:10AM

12
#182 - newton / @newtonsmartt

10/15/2013 at 08:26PM

12
#183 - foo / @foo88832727

10/18/2013 at 04:00PM

12
#184 - bunnies president / @bunnies4p

10/27/2013 at 05:14PM

12
#185 - US Dollar Price / @USDollarPrice

11/06/2013 at 06:31AM

12
#186 - Mathieu Larouche / @matdube

11/19/2013 at 02:13AM

12
#187 - Eric Potter / @pottereric

12/20/2013 at 02:49PM

12
#188 - Sam Burk / @smwbk

12/21/2013 at 03:57AM

12
#189 - Matt Parnell / @parnmattdev

01/02/2014 at 11:24PM

12
#190 - Quota / @Quotad

01/27/2014 at 10:46AM

12
#191 - João Paiva / @jgpaiva

01/31/2014 at 11:30AM

12
#192 - Jérémy Autran / @jjautran

01/31/2014 at 01:12PM

12
#193 - Joonas Pihlajamaa / @jokkebk

02/19/2014 at 12:18PM

12
#194 - Timothy Lin / @lzh9102

03/07/2014 at 11:37PM

12
#195 - Patrick Oscity / @der_padde

03/26/2014 at 12:33PM

12
#196 - ZorgroZ / @ZorgroZ

04/11/2014 at 10:07PM

12
#197 - lastsseldon / @lastsseldon

05/10/2014 at 03:25AM

12
#198 - Mark Inksa / @MInksaCS

05/11/2014 at 08:54PM

12
#199 - Hyper Bovine / @hyperbovine

05/12/2014 at 05:31PM

12
#200 - TapTemplate / @TapTemplate

06/25/2014 at 12:59PM

12
#201 - John Meisner / @jmeisned

06/26/2014 at 04:01AM

12
#202 - bXpjE4GzUfnPTRHes1mI / @5DQzMDKJs2VoVt

07/03/2014 at 06:12PM

12
#203 - Ram Tamtam / @ramtamtamtam

07/17/2014 at 10:09AM

12
#204 - Austin Cormier / @lotusmorc

07/18/2014 at 02:28PM

12
#205 - Dmitriy / @_dpy_

08/21/2014 at 08:20PM

12
#206 - kemar / @le_kemar

08/26/2014 at 03:55PM

12
#207 - Dario Avitabile / @tutticapaci

09/14/2014 at 12:39PM

12
#208 - Michael Comerford / @MComerford1

09/25/2014 at 08:53AM

12
#209 - deris / @deris0126

11/07/2014 at 10:21AM

12
#210 - Jake Eskel / @JakeEskel

01/07/2015 at 03:52AM