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

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

338 active golfers, 1616 entries

Solutions by @GavinKoeng:
16
#50 - Gavin / @GavinKoeng

10/29/2025 at 09:00AM

17
#>86 - Gavin / @GavinKoeng

10/29/2025 at 08:56AM

18
#>99 - Gavin / @GavinKoeng

10/29/2025 at 08:55AM

19
#>107 - Gavin / @GavinKoeng

10/29/2025 at 08:48AM

19
#>107 - Gavin / @GavinKoeng

10/29/2025 at 08:52AM

19
#>107 - Gavin / @GavinKoeng

10/29/2025 at 08:53AM

20
#>113 - Gavin / @GavinKoeng

10/29/2025 at 08:46AM

21
#>123 - Gavin / @GavinKoeng

10/29/2025 at 08:45AM

21
#>123 - Gavin / @GavinKoeng

10/29/2025 at 08:46AM

22
#>142 - Gavin / @GavinKoeng

10/29/2025 at 08:30AM

22
#>142 - Gavin / @GavinKoeng

10/29/2025 at 08:42AM

23
#>161 - Gavin / @GavinKoeng

10/29/2025 at 08:27AM

24
#>171 - Gavin / @GavinKoeng

10/29/2025 at 08:24AM

27
#>194 - Gavin / @GavinKoeng

10/29/2025 at 08:22AM

29
#>220 - Gavin / @GavinKoeng

10/29/2025 at 08:21AM

31
#>237 - Gavin / @GavinKoeng

10/29/2025 at 08:19AM

49
#>299 - Gavin / @GavinKoeng

10/29/2025 at 08:15AM

111
#>333 - Gavin / @GavinKoeng

10/29/2025 at 08:13AM