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

367 active golfers, 890 entries

Leaderboard (lowest score wins):
11
#121 - vimgolfer / @vimgolfer7

10/12/2019 at 04:43PM

11
#122 - Melvin Cheung / @MelvinCheung

11/13/2019 at 03:20AM

11
#123 - Miłosz Łakomy / @foobar01123

12/25/2019 at 04:46AM

11
#124 - hereforthepermission / @herefortheperm1

01/20/2020 at 03:19PM

12
#125 - Tibor Claassen / @codebeige

06/02/2012 at 09:21AM

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

06/02/2012 at 09:29AM

12
#127 - Pawel Obrok / @mrYapee

06/02/2012 at 10:23AM

12
#128 - Simon Nicolussi / @sinic

06/02/2012 at 02:18PM

12
#129 - Justin Love / @wondible

06/02/2012 at 03:37PM

12
#130 - Alain Gilbert / @alain_gilbert

06/02/2012 at 05:14PM

12
#131 - Jonathan Lozinski / @jlozinski

06/02/2012 at 07:13PM

12
#132 - John Whitley / @johnwhitley

06/03/2012 at 01:37AM

12
#133 - Rod Knowlton / @codelahoma

06/03/2012 at 05:53PM

12
#134 - mnx / @mnxx

06/03/2012 at 10:24PM

12
#135 - Javier Blanco / @jbgutierrez

06/04/2012 at 10:31PM

12
#136 - captain_morgan / @captain_morgan

06/05/2012 at 09:37AM

12
#137 - Benson Kim / @BensonRLA

06/05/2012 at 05:02PM

12
#138 - Benoit Mortgat / @Benoit_Mortgat

06/05/2012 at 06:53PM

12
#139 - Simian Apey / @SimianApey

06/12/2012 at 08:17AM

12
#140 - RusAlex Pletnev / @RusAlexander

06/17/2012 at 01:29PM

12
#141 - abernardes / @abernardes

06/21/2012 at 04:02PM

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

07/15/2012 at 02:15PM

12
#143 - Tom Sisk / @TomSisk

07/19/2012 at 09:20PM

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

07/20/2012 at 02:50PM

12
#145 - Glen / @Glen_S

07/21/2012 at 03:15AM

12
#146 - Christopher Brew / @Seph1rothVII

07/24/2012 at 09:14PM

12
#147 - William Dunand / @wdunand

07/27/2012 at 05:48AM

12
#148 - Chris Brown / @engineercyb

07/31/2012 at 08:41PM

12
#149 -  Ikhsan Maulana / @ixandidu

08/18/2012 at 03:20PM

12
#150 - vansan / @VinceVansan

08/23/2012 at 05:41PM