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):
9
#241 - Salvador Tojo Quintela / @SalvadorTojo

10/08/2021 at 06:54PM

10
#242 - James Cash / @jamesnvc

06/02/2012 at 04:52PM

10
#243 - Drew Benedetti / @cnorsl

07/17/2012 at 07:28PM

10
#244 - Christopher Brew / @Seph1rothVII

07/24/2012 at 09:16PM

10
#245 - it's not me / @dpree

08/10/2012 at 03:47PM

10
#246 - Tyler Breisacher / @tbreisacher

08/25/2012 at 07:42AM

10
#247 - ajh / @AlexJHammel

12/23/2012 at 06:22PM

10
#248 - Asmund / @herrasbe

01/12/2013 at 05:34PM

10
#249 - Marcelo Izaguirre / @shinigamichelo

05/30/2014 at 11:10AM

10
#250 - Paul Draghicescu / @pdragy

03/22/2018 at 10:10PM

10
#251 - Brent Woo / @BrentPWoo

10/01/2018 at 09:10PM

10
#252 - tpoeiras / @tpoeirass

08/01/2021 at 04:41AM

11
#253 - Raphaël De Giusti / @raphdg

06/02/2012 at 06:42PM

11
#254 - olopost / @olopost

08/19/2014 at 08:18PM

11
#255 - Injae Kang / @abcinje

07/14/2023 at 05:30PM

12
#256 - lauri lehmijoki / @laurilehmijoki

06/02/2012 at 02:58PM

12
#257 - NuM / @NuM314

10/05/2013 at 11:43PM

12
#258 - Tomasz Wesołowski / @KosGD

10/13/2014 at 11:40AM

12
#259 - Gurukandhamoorthi / @Gurukandhamoor1

07/27/2017 at 02:55PM

14
#260 - Rohin Patel / @ropatel

11/02/2012 at 12:49AM

14
#261 - Ryan / @Rdgy567889

09/30/2023 at 09:43AM

15
#262 - Noel Alejandro / @noelrock333

06/23/2012 at 12:03AM

15
#263 - Samuel Masuy / @samasuy

07/24/2014 at 04:06PM