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

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

165 active golfers, 671 entries

Solutions by @brandonce:
21
#53 - Brando / @brandonce

01/18/2025 at 07:46AM

22
#>61 - Brando / @brandonce

01/18/2025 at 07:43AM

23
#>67 - Brando / @brandonce

01/18/2025 at 07:42AM

24
#>73 - Brando / @brandonce

01/18/2025 at 07:40AM

27
#>90 - Brando / @brandonce

01/18/2025 at 07:38AM

29
#>102 - Brando / @brandonce

01/18/2025 at 07:27AM

32
#>111 - Brando / @brandonce

01/18/2025 at 07:34AM

34
#>117 - Brando / @brandonce

01/18/2025 at 07:25AM