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 @myu-innocence:

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

73 active golfers, 287 entries

Solutions by @myu-innocence:
22
#32 - myu-innocence / @myu-innocence

12/19/2024 at 03:09PM

23
#>37 - myu-innocence / @myu-innocence

12/19/2024 at 03:03PM

24
#>38 - myu-innocence / @myu-innocence

12/19/2024 at 03:00PM

30
#>49 - myu-innocence / @myu-innocence

12/19/2024 at 02:53PM

36
#>56 - myu-innocence / @myu-innocence

12/19/2024 at 02:42PM

47
#>63 - myu-innocence / @myu-innocence

12/19/2024 at 02:32PM