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

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

93 active golfers, 367 entries

Solutions by @aconamos:
16
#7 - aconamos / @aconamos

12/18/2024 at 03:19AM

17
#>18 - aconamos / @aconamos

12/18/2024 at 03:16AM

18
#>24 - aconamos / @aconamos

12/18/2024 at 03:15AM

21
#>32 - aconamos / @aconamos

12/18/2024 at 03:06AM

22
#>36 - aconamos / @aconamos

12/18/2024 at 03:03AM

23
#>43 - aconamos / @aconamos

12/18/2024 at 03:02AM

24
#>45 - aconamos / @aconamos

12/18/2024 at 03:01AM

29
#>57 - aconamos / @aconamos

12/18/2024 at 02:42AM

31
#>60 - aconamos / @aconamos

12/18/2024 at 02:39AM

33
#>61 - aconamos / @aconamos

12/18/2024 at 02:39AM