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

370 active golfers, 898 entries

Leaderboard (lowest score wins):
11
#61 - Charlene Tshos / @charlymul

12/05/2013 at 02:47PM

11
#62 - Stefan Schmidt / @stafue

12/06/2013 at 01:29PM

11
#63 - Henry Jalonen / @spheroid

01/29/2014 at 10:47AM

11
#64 - Ronny Esterluss / @esterlus

01/29/2014 at 03:02PM

11
#65 - Xelrifos / @Xelrifos

02/20/2014 at 08:01PM

11
#66 - Jonas K. / @geratheon

02/28/2014 at 05:03PM

11
#67 - Stephen Drodge / @sjdrodge

03/14/2014 at 10:09PM

11
#68 - RB / @powerage88

03/23/2014 at 01:00AM

11
#69 - John Braxler / @braxler

03/27/2014 at 07:04PM

11
#70 - Olivier Gayot / @duskCoder

05/02/2014 at 11:16AM

11
#71 - Norm Fasey / @DeathRay1977

05/03/2014 at 12:23PM

11
#72 - Brian / @wyantb_reader

06/26/2014 at 02:40AM

11
#73 - playalong / @playwithit42

07/15/2014 at 01:22PM

11
#74 - Haoxuan Yue / @yuehaoxuanar

07/19/2014 at 01:28PM

11
#75 - Alphonso De La Morte / @FatDrakula

07/19/2014 at 02:03PM

11
#76 - Caek / @Caek_

07/25/2014 at 02:05AM

11
#77 - LC / @leeren

08/09/2014 at 09:28PM

11
#78 - Bill Booth / @ohiopyle

08/27/2014 at 07:47AM

11
#79 - Johannes H. / @neVexa

09/23/2014 at 10:18AM

11
#80 - Hanakun. / @akunohanaKUN

10/21/2014 at 07:54AM

11
#81 - eBrnd / @eBrnd

11/03/2014 at 07:38PM

11
#82 - Hrvoje Kopinc / @Hrwaaa

11/16/2014 at 06:11PM

11
#83 - kimber gonzalez / @kimberlycreates

01/21/2015 at 03:48PM

11
#84 - Alexander Kazakov / @volandkot

03/30/2015 at 03:20PM

11
#85 - Clark DuVall / @theclarkatron

05/23/2015 at 05:05AM

11
#86 - David Nguyen / @nguydavi

06/05/2015 at 07:44PM

11
#87 - Lifepillar / @lifepillar

07/05/2015 at 03:34PM

11
#88 - Louis Burke / @LambdaABeta

07/13/2015 at 01:23PM

11
#89 - Dan Moldovan / @Lenea92

09/01/2015 at 12:43PM

11
#90 - Walker Boh / @walker_boh

10/12/2015 at 11:49AM