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
#211 - Stefan Schmidt / @stafue

12/06/2013 at 03:26PM

8
#212 - Quota / @Quotad

02/10/2014 at 03:50PM

8
#213 - jimauthors / @jimauthors

03/04/2014 at 12:48AM

8
#214 - Mark Inksa / @MInksaCS

05/11/2014 at 12:32PM

8
#215 - Ram Tamtam / @ramtamtamtam

06/30/2014 at 02:36PM

8
#216 - Tj / @yrddy

08/19/2014 at 11:37AM

8
#217 - mark0829 / @mark0829

03/19/2015 at 05:27AM

8
#218 - pftb12345 / @pftb12345

04/13/2015 at 05:47AM

8
#219 - Adrien Fabre / @statox42

05/24/2015 at 06:50PM

8
#220 - Skúli Jóhannsson / @skulibj

06/28/2015 at 09:11PM

8
#221 - Anno / @AnnoVinyl

10/15/2015 at 04:08PM

8
#222 - Yann / @yannstad

03/01/2017 at 01:21AM

8
#223 - Peter Sand / @PeterSand12

03/11/2017 at 06:22PM

8
#224 - Brian Hall / @_bruab_

10/02/2017 at 03:08PM

8
#225 - Ben Hill / @KaizenSoze70

10/12/2017 at 06:37PM

8
#226 - DHM / @DHM29978992

05/01/2018 at 03:13AM

8
#227 - autological_being / @metaporias

05/03/2018 at 07:00PM

8
#228 - Gatlee / @gatlee

05/06/2018 at 02:15PM

8
#229 - Bart Kleijngeld / @BartKleijngeld

12/24/2018 at 09:01PM

8
#230 - WbrL17 / @WbrL17

06/23/2022 at 07:55PM

8
#231 - anakojm / @anakojm

07/13/2022 at 10:54PM

8
#232 - Brian Asiago / @TheBrianAsiago

08/03/2022 at 07:01PM

8
#233 - Jin-hyeok Kim / @JinhyeokKim12

04/04/2023 at 12:27AM

8
#234 - Ronen Cohen / @nenorbot

11/04/2023 at 04:04PM

8
#235 - potatol33t / @potatol33t

02/21/2024 at 10:37PM

9
#236 - Alec Chen / @alec929

11/03/2012 at 02:12PM

9
#237 - RobertT / @techrt2050

07/10/2013 at 08:59AM

9
#238 - Hachez Floran / @FloranHachez

09/06/2013 at 11:14PM

9
#239 - luffy / @raxcoi

06/12/2015 at 03:36PM

9
#240 - Jurica / @Jurica34581259

12/12/2018 at 11:30AM