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):
6
#61 - Petro Тrouq / @zulolosi

06/05/2013 at 06:18AM

6
#62 - Shoop Da Whoop / @ShoopDaWhoop8

06/06/2013 at 08:41PM

6
#63 - Bradd Szonye / @bszonye

07/13/2013 at 01:48PM

6
#64 - moo goo / @m00g000

07/19/2013 at 02:32PM

6
#65 - James / @Dronak

08/29/2013 at 10:45PM

6
#66 - isayoldchap / @isayoldchap

09/20/2013 at 05:09AM

6
#67 - hiding / @I_haveno_name

10/01/2013 at 07:28AM

6
#68 - Charles H. Leggett / @cleggett

11/05/2013 at 02:56AM

6
#69 - raymangum / @raymangum

12/27/2013 at 06:14PM

6
#70 - Xelrifos / @Xelrifos

02/18/2014 at 08:05PM

6
#71 - Joonas Pihlajamaa / @jokkebk

03/19/2014 at 11:17AM

6
#72 - John Braxler / @braxler

04/17/2014 at 12:51PM

6
#73 - Felipe Jaramillo F / @mrfelipe

05/01/2014 at 04:44AM

6
#74 - Peeby Thirtyone / @peeby31

05/05/2014 at 08:32PM

6
#75 - Caek / @Caek_

07/25/2014 at 03:28AM

6
#76 - LC / @leeren

08/09/2014 at 10:03PM

6
#77 - bratliff / @bratliff

08/10/2014 at 07:22AM

6
#78 - David Nguyen / @nguydavi

06/06/2015 at 03:06PM

6
#79 - Nicholas McHenry / @n_mchenry

06/14/2015 at 04:28PM

6
#80 - Paul / @MapCalculator

06/24/2015 at 04:39AM

6
#81 - Jack Z / @itszhou

06/28/2015 at 09:12PM

6
#82 - Robert Goeddel / @f0rdpr3fect

11/13/2015 at 07:56PM

6
#83 - Walker Boh / @walker_boh

11/17/2015 at 12:17PM

6
#84 - emblox / @emblox

02/29/2016 at 06:28AM

6
#85 - Jake Griffin / @J4K0_G

04/22/2016 at 11:58PM

6
#86 - Ikypiky / @nerdbeereis

06/16/2016 at 12:13AM

6
#87 - Jon Krause / @jkrause314

06/28/2016 at 09:26PM

6
#88 - Will / @obiwan__k3n00bi

08/11/2016 at 02:08AM

6
#89 - Tim Grebien / @tiggg

02/22/2017 at 08:50AM

6
#90 - Jim Bob / @babyclubber

02/28/2017 at 12:37AM