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 by @mkcmkc:

Unlock 8 remaining solutions by signing in and submitting your own entry
Created by: @iantalks

262 active golfers, 1226 entries

Solutions by @mkcmkc:
23
#127 - Matthew Cooper / @mkcmkc

12/02/2025 at 10:38PM

24
#>135 - Matthew Cooper / @mkcmkc

12/01/2025 at 12:33AM

26
#>149 - Matthew Cooper / @mkcmkc

11/26/2025 at 11:45PM

28
#>165 - Matthew Cooper / @mkcmkc

11/25/2025 at 11:57PM

35
#>207 - Matthew Cooper / @mkcmkc

11/17/2025 at 12:13AM

38
#>214 - Matthew Cooper / @mkcmkc

11/24/2025 at 01:05AM

41
#>218 - Matthew Cooper / @mkcmkc

10/27/2025 at 01:42AM

44
#>222 - Matthew Cooper / @mkcmkc

10/20/2025 at 12:43AM