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

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

236 active golfers, 1073 entries

Solutions by @leonkacowicz:
16
#33 - Leon Kacowicz / @leonkacowicz

05/23/2025 at 01:08PM

17
#>56 - Leon Kacowicz / @leonkacowicz

05/02/2025 at 01:00PM

22
#>93 - Leon Kacowicz / @leonkacowicz

05/02/2025 at 12:55PM

23
#>106 - Leon Kacowicz / @leonkacowicz

05/02/2025 at 12:49PM

24
#>120 - Leon Kacowicz / @leonkacowicz

05/23/2025 at 01:04PM

24
#>120 - Leon Kacowicz / @leonkacowicz

05/23/2025 at 01:06PM

25
#>127 - Leon Kacowicz / @leonkacowicz

05/02/2025 at 12:48PM

26
#>133 - Leon Kacowicz / @leonkacowicz

05/02/2025 at 12:46PM

27
#>138 - Leon Kacowicz / @leonkacowicz

05/01/2025 at 09:10PM

27
#>138 - Leon Kacowicz / @leonkacowicz

05/02/2025 at 12:44PM

29
#>158 - Leon Kacowicz / @leonkacowicz

05/23/2025 at 01:01PM

30
#>161 - Leon Kacowicz / @leonkacowicz

05/23/2025 at 12:59PM

50
#>209 - Leon Kacowicz / @leonkacowicz

05/02/2025 at 12:38PM