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 @phaym:

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

236 active golfers, 1073 entries

Solutions by @phaym:
21
#86 - phaym / @phaym

05/15/2025 at 01:26PM

22
#>96 - phaym / @phaym

05/15/2025 at 01:05PM

22
#>96 - phaym / @phaym

05/15/2025 at 01:26PM

23
#>109 - phaym / @phaym

05/15/2025 at 01:03PM

25
#>127 - phaym / @phaym

05/15/2025 at 01:02PM

28
#>146 - phaym / @phaym

05/15/2025 at 12:35PM

29
#>158 - phaym / @phaym

05/15/2025 at 12:34PM

35
#>187 - phaym / @phaym

05/15/2025 at 12:34PM

49
#>208 - phaym / @phaym

05/15/2025 at 12:31PM

56
#>218 - phaym / @phaym

05/15/2025 at 12:29PM