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
#121 - Levi Wheeler / @LeviWhe68726437

06/15/2022 at 08:05PM

6
#122 - Stanisław Ostrowski / @StanisawOstrow4

07/08/2022 at 07:02PM

6
#123 - Robert Newey / @wiseassbogan

07/09/2022 at 06:07AM

6
#124 - Micheal Wells / @michealwwells

08/03/2022 at 07:03PM

6
#125 - Gabriele / @lazygeb

08/03/2022 at 07:08PM

6
#126 - Qing Liu / @poeminlash

08/13/2022 at 09:49PM

6
#127 - Brandon / @Brandon10678836

08/31/2022 at 02:00PM

6
#128 - Janzen / @__Coos

09/26/2022 at 10:40AM

6
#129 - Topvimgolf Score / @topvimgolfscore

07/10/2023 at 05:40AM

6
#130 - Anonymous English Learner / @HoffmanDevs

07/18/2023 at 09:42AM

6
#131 - Milan Blažek / @Somin13

09/06/2023 at 08:24PM

6
#132 - Mohammad Apel Mahmod / @apel_mahmod

09/21/2023 at 01:42PM

6
#133 - 咸糖🎯 / @GIA917229015

01/04/2024 at 03:53PM

6
#134 - xiaoao1024 / @xiaoao1024

05/06/2024 at 10:58AM

6
#135 - Peppa Pig / @PeppaPigSg

05/25/2024 at 09:03AM

6
#136 - Paul McDowell / @etothepi16

06/16/2024 at 06:08PM

6
#137 - nickGPT / @nickandbro

08/28/2024 at 08:53PM

6
#138 - demouo / @demouo

10/23/2024 at 03:57AM

7
#139 - Trey Thomas / @treythomas123

03/13/2016 at 12:24AM

7
#140 - Ayush Sachdeva / @ayush000

06/05/2017 at 08:08PM

7
#141 - Marten Ringwelski / @Marteon27

12/09/2018 at 03:48PM

7
#142 - Nick Yeow / @nickyeow

05/22/2019 at 02:06PM

7
#143 - Sigurður Ægir Jónsso / @siggiae

06/09/2019 at 11:30PM

7
#144 - Quark / @PuzzleQuark

03/22/2020 at 06:24PM

7
#145 - Arya Kumar / @SusSquirrel

05/26/2021 at 02:31AM

7
#146 - vimgolfaccfekxh / @vimgolfaccfekxh

10/20/2022 at 02:16PM

7
#147 - Dionysus / @user101user

06/15/2023 at 02:11AM

7
#148 - Remus Dalrymple / @bornintheflames

12/28/2023 at 06:46PM

7
#149 - shahanavaz m / @shahanavazm

03/19/2024 at 05:16PM

8
#150 - Justin Love / @wondible

06/02/2012 at 03:38PM