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

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

302 active golfers, 1482 entries

Solutions by @msbatarce:
16
#19 - msbatarce / @msbatarce

03/28/2025 at 04:11PM

17
#>68 - msbatarce / @msbatarce

03/28/2025 at 04:02PM

20
#>101 - msbatarce / @msbatarce

03/28/2025 at 03:58PM

21
#>111 - msbatarce / @msbatarce

03/28/2025 at 03:47PM

22
#>121 - msbatarce / @msbatarce

03/28/2025 at 03:43PM

24
#>151 - msbatarce / @msbatarce

03/28/2025 at 03:31PM

25
#>161 - msbatarce / @msbatarce

03/28/2025 at 03:28PM

27
#>176 - msbatarce / @msbatarce

03/28/2025 at 03:25PM

30
#>203 - msbatarce / @msbatarce

03/28/2025 at 03:21PM

39
#>248 - msbatarce / @msbatarce

03/28/2025 at 03:12PM