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 9v00674f1bfb00000000063d

YAML to dotenv

Convert this YAML config file to a .env file.

Start file
vimgolf:
  logging:
    level: INFO
app:
  postgres:
    host: !ENV {POSTGRES_HOST}
    port: !ENV {POSTGRES_PORT}
  pulsar:
    host: !ENV ${PULSAR_HOST}
    port: !ENV ${PULSAR_PORT}
    namespace: vimgolf
    topic: !ENV ${PULSAR_TOPIC}
End file
POSTGRES_HOST=
POSTGRES_PORT=
PULSAR_HOST=
PULSAR_PORT=
PULSAR_TOPIC=

View Diff

1,12c1,5
< vimgolf:
<   logging:
<     level: INFO
< app:
<   postgres:
<     host: !ENV {POSTGRES_HOST}
<     port: !ENV {POSTGRES_PORT}
<   pulsar:
<     host: !ENV ${PULSAR_HOST}
<     port: !ENV ${PULSAR_PORT}
<     namespace: vimgolf
<     topic: !ENV ${PULSAR_TOPIC}
---
> POSTGRES_HOST=
> POSTGRES_PORT=
> PULSAR_HOST=
> PULSAR_PORT=
> PULSAR_TOPIC=

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 339 remaining solutions by signing in and submitting your own entry
#340 M L / @Mechse - Score: 193 - 09/05/25 @ 07:54
:%s/.*!ENV {<BS>}<BS>{}<Left>\?\$<0xc2><0xaf><BS>\?{<Right><BS>{<BS>\`?<BS><BS>?()<Left><Right>}<Left><Left>[A-Z_]*\<Right><Right>.*<BS><BS><Left><Left><Right><BS><BS><BS><Left><Left><Left><Right><Right><Right>)<Right>.<BS>*<BS><Left><Left><Left><BS><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS>()<Left>[]<Left>A-<BS>-Z<Right><Right><Left><Left>_<Right>*\<Right>}.*\?/<BS><BS><BS><BS><BS><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>\<Right><Right><Right><Right><Right><Right><Right><Right><Right>?<BS><Right><Right>.*\?<BS><BS><BS><BS>/\1=/g<CR>_:%s/<0xc2><0xb0><BS>^[<0xc2><0xb0><BS>^A-Z].*\n//g<CR>:wq<CR>

0 comments


#341 skewcy-bot / @skewcy-bot - Score: 193 - 08/18/26 @ 15:25
:%s/.*!ENV {<BS>}<BS>{}<Left>\?\$<0xc2><0xaf><BS>\?{<Right><BS>{<BS>\`?<BS><BS>?()<Left><Right>}<Left><Left>[A-Z_]*\<Right><Right>.*<BS><BS><Left><Left><Right><BS><BS><BS><Left><Left><Left><Right><Right><Right>)<Right>.<BS>*<BS><Left><Left><Left><BS><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS>()<Left>[]<Left>A-<BS>-Z<Right><Right><Left><Left>_<Right>*\<Right>}.*\?/<BS><BS><BS><BS><BS><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>\<Right><Right><Right><Right><Right><Right><Right><Right><Right>?<BS><Right><Right>.*\?<BS><BS><BS><BS>/\1=/g<CR>_:%s/<0xc2><0xb0><BS>^[<0xc2><0xb0><BS>^A-Z].*\n//g<CR>:wq<CR>

0 comments


Created by: @iantalks

341 active golfers, 1633 entries

Leaderboard (lowest score wins):
23
#151 - k1mosabe / @k1mosabe

12/08/2024 at 03:16AM

23
#152 - MartnRamtin / @MartnRamtin

12/11/2024 at 10:47PM

23
#153 - Karim / @KarimIbrahim

01/26/2025 at 08:12PM

23
#154 - e.cousinet / @ecousinet

02/16/2025 at 08:57AM

23
#155 - Josh / @joshfelm

05/01/2025 at 05:29PM

23
#156 - Eli Tan / @eliedrian

05/08/2025 at 11:35AM

23
#157 - ohwell / @KiranClose

05/10/2025 at 07:39PM

23
#158 - Luiz Eduardo Amaral / @luxedo

05/10/2025 at 09:36PM

23
#159 - thomasyang18 / @thomasyang18

05/16/2025 at 01:01AM

23
#160 - Adrian Lym / @AJGamma

05/18/2025 at 08:51AM

23
#161 - Bthxtly / @Bthxtly

06/21/2025 at 11:50AM

23
#162 - mf06359 / @mf06359

07/11/2025 at 03:13PM

23
#163 - Alex Clough / @CodingInRhythm

02/14/2026 at 04:11AM

23
#164 - Larkin / @larkin1

03/12/2026 at 10:16PM

23
#165 - lemonish / @p-lemonish

04/19/2026 at 07:20PM

24
#166 - OuterSoda / @OuterSoda

01/22/2025 at 10:13AM

24
#167 - Paroxyss / @Paroxyss

01/29/2025 at 03:16PM

24
#168 - mevmev / @mevmev8

02/08/2025 at 04:16AM

24
#169 - RoundRobinHood / @RoundRobinHood

04/26/2025 at 10:23AM

24
#170 - Ludvig Lindahl / @ludlind

05/08/2025 at 02:13PM

24
#171 - River Dillon / @rdck

05/09/2025 at 01:01AM

24
#172 - Lowisz / @Lowisz

05/09/2025 at 11:18AM

24
#173 - Henry Coggins / @hcoggins

02/06/2026 at 10:22PM

24
#174 - Jean-Valery / @Jvaxx

03/27/2026 at 02:37PM

24
#175 - Najeeb Al-Shabibi / @master-spike

05/30/2026 at 10:16PM

25
#176 - Biswajit / @biswajitpatra

12/12/2024 at 11:27AM

25
#177 - z0rzi / @z0rzi

01/30/2025 at 04:35PM

25
#178 - Ryo3110 / @r-3110

03/03/2025 at 01:03AM

25
#179 - Fredrik Robertsen / @fredrikr79

03/19/2025 at 05:46PM

25
#180 - Ole Jan Lars Riemann / @ojlr

04/03/2025 at 03:05PM