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

Append semicolon after expressions

Some lines need the semicolon, some don't.

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 419 remaining solutions by signing in and submitting your own entry
#420 Noel Alejandro / @noelrock333 - Score: 38 - 06/23/12 @ 00:08
:4<BS>%s.<BS>/s<BS>)/x<BS>no<BS><BS>/<BS>(<BS>);/<CR>1G7la;<Esc>:w<CR><C-W>q

0 comments


Created by: @laurilehmijoki

420 active golfers, 1057 entries

Leaderboard (lowest score wins):
12
#241 - Bennett / @bennettbackward

12/19/2018 at 01:23PM

12
#242 - Bart Kleijngeld / @BartKleijngeld

12/24/2018 at 11:10PM

12
#243 - Mihai / @mihaicristiant

01/07/2019 at 12:03PM

12
#244 - πšƒπš’πšπš˜πšžπšŠπš— πšƒπšŽπš’πšœπšœπš’πšŽπš› / @TitouanT_

03/09/2019 at 10:29PM

12
#245 - Nick Yeow / @nickyeow

05/23/2019 at 11:35AM

12
#246 - Vimfiz / @vimfiz

06/07/2019 at 04:57PM

12
#247 - albalitz / @_albalitz

06/14/2019 at 12:19PM

12
#248 - Chester Yap / @Chest_ErYap

07/21/2019 at 01:05AM

12
#249 - Kenny Low / @kennylow

09/20/2019 at 01:38PM

12
#250 - Lory / @Lory46845742

11/22/2019 at 02:31PM

12
#251 - Johannes Riecken / @rubystallion

01/15/2020 at 07:47PM

12
#252 - iBhagwan / @iiBhagwan

06/29/2020 at 03:07AM

12
#253 - Jake Grossman / @PiranaLaugh

11/13/2020 at 07:42AM

12
#254 - Michel Viktor / @tomkpz

08/01/2021 at 01:21AM

12
#255 - Salvador Tojo Quintela / @SalvadorTojo

10/09/2021 at 06:38AM

12
#256 - Homo Ludens / @BsMainly

11/03/2021 at 04:02AM

12
#257 - Jean George / @JeanGeo20504212

01/15/2022 at 10:26AM

12
#258 - blabla zincou / @BZincou

04/10/2022 at 08:50PM

12
#259 - Levi Wheeler / @LeviWhe68726437

06/15/2022 at 08:15PM

12
#260 - Qing Liu / @poeminlash

08/13/2022 at 09:45PM

12
#261 - Brandon / @Brandon10678836

08/31/2022 at 01:56PM

12
#262 - vimgolfaccfekxh / @vimgolfaccfekxh

10/20/2022 at 02:12PM

12
#263 - Milan BlaΕΎek / @Somin13

09/06/2023 at 08:26PM

12
#264 - Brice Bischoff / @B-Bischoff

10/25/2024 at 01:23PM

12
#265 - Elliot Schemmel / @regulated

10/30/2024 at 01:11PM

12
#266 - Pablo Acuna / @pacuna

11/20/2024 at 12:52AM

12
#267 - Leon Kacowicz / @leonkacowicz

05/30/2025 at 01:06PM

13
#268 - Kerson Hsiao / @KersonHsiao

06/02/2012 at 09:36AM

13
#269 - γ˜γ‚‡γ‚“γ‚γ° / @john_ababa

06/02/2012 at 09:48AM

13
#270 - Asenar / @asenar

06/02/2012 at 03:49PM