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 4fca29ddd3a0d40001000038

Remove semicolons after expressions

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

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 261 remaining solutions by signing in and submitting your own entry
#262 Noel Alejandro / @noelrock333 - Score: 15 - 06/23/12 @ 00:03
:%s/;//<CR>:w<CR><Esc>:q<CR>

0 comments


#263 Samuel Masuy / @samasuy - Score: 15 - 07/24/14 @ 16:06
qaI<Esc>A<BS><Esc>jjq3@aZZ

0 comments


Created by: @laurilehmijoki

263 active golfers, 654 entries

Leaderboard (lowest score wins):
8
#151 - Asenar / @asenar

06/02/2012 at 03:51PM

8
#152 - Pawel Obrok / @mrYapee

06/02/2012 at 03:54PM

8
#153 - Thomas Schönwälder / @Masei1988

06/02/2012 at 05:21PM

8
#154 - じょんあば / @john_ababa

06/02/2012 at 06:34PM

8
#155 - Jonathan Lozinski / @jlozinski

06/02/2012 at 07:16PM

8
#156 - John Whitley / @johnwhitley

06/03/2012 at 01:41AM

8
#157 - Jacob Vosmaer / @jacobvosmaer

06/03/2012 at 11:25AM

8
#158 - Mattiassich Ákos / @mattiassicha

06/03/2012 at 06:06PM

8
#159 - mnx / @mnxx

06/03/2012 at 10:08PM

8
#160 - Simon Nicolussi / @sinic

06/04/2012 at 06:59PM

8
#161 - Javier Blanco / @jbgutierrez

06/04/2012 at 10:39PM

8
#162 - Benjamin Sergeant / @bsergean

06/05/2012 at 04:43AM

8
#163 - captain_morgan / @captain_morgan

06/05/2012 at 09:19AM

8
#164 - Roel van Dijk / @rdvdijk

06/05/2012 at 03:42PM

8
#165 - shutl_test / @shutl_test

06/06/2012 at 11:19AM

8
#166 - Robin Landström / @R_Landstrom

06/06/2012 at 05:24PM

8
#167 - Matty Williams / @matty_jwilliams

06/08/2012 at 02:52PM

8
#168 - Josh Steiner / @josh_steiner

06/12/2012 at 07:53PM

8
#169 - Carlos Hernando / @chernando

06/13/2012 at 06:57PM

8
#170 - J Paul Daigle / @philosodad

06/18/2012 at 09:02PM

8
#171 - Batata / @hetalbatata

06/20/2012 at 01:01AM

8
#172 - Vitaly Kushner / @vkushner

06/21/2012 at 01:13AM

8
#173 - exitmouse / @exitmouse

06/22/2012 at 05:40PM

8
#174 - Brandon Montgomery / @bmonty

06/23/2012 at 01:50PM

8
#175 - Vasil Sakarov / @vsakarov

06/26/2012 at 09:57AM

8
#176 - Philippe Creux / @pcreux

07/13/2012 at 06:54AM

8
#177 - Eric Mathison / @ericmathison

07/13/2012 at 09:36AM

8
#178 - Verity / @dv4me

07/15/2012 at 12:54AM

8
#179 - Lukas Korsika / @LKorsika

07/17/2012 at 06:09AM

8
#180 - William Dunand / @wdunand

07/27/2012 at 06:00AM