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

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

216 active golfers, 999 entries

Solutions by @KarimIbrahim:
23
#97 - Karim / @KarimIbrahim

01/26/2025 at 08:12PM

27
#>128 - Karim / @KarimIbrahim

01/26/2025 at 08:07PM

28
#>133 - Karim / @KarimIbrahim

01/26/2025 at 08:03PM

28
#>133 - Karim / @KarimIbrahim

01/26/2025 at 08:04PM

28
#>133 - Karim / @KarimIbrahim

01/26/2025 at 08:08PM

30
#>151 - Karim / @KarimIbrahim

01/26/2025 at 08:01PM

32
#>156 - Karim / @KarimIbrahim

01/26/2025 at 06:31PM

35
#>169 - Karim / @KarimIbrahim

01/26/2025 at 06:21PM

40
#>180 - Karim / @KarimIbrahim

01/26/2025 at 06:14PM