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

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

140 active golfers, 582 entries

Solutions by @shooker2012:
16
#12 - shooker2012 / @shooker2012

01/23/2025 at 07:32AM

17
#>28 - shooker2012 / @shooker2012

01/23/2025 at 07:32AM

18
#>36 - shooker2012 / @shooker2012

01/23/2025 at 07:31AM

19
#>39 - shooker2012 / @shooker2012

01/23/2025 at 07:31AM

20
#>42 - shooker2012 / @shooker2012

01/23/2025 at 07:30AM

21
#>47 - shooker2012 / @shooker2012

01/23/2025 at 07:29AM

22
#>55 - shooker2012 / @shooker2012

01/23/2025 at 07:29AM

23
#>59 - shooker2012 / @shooker2012

01/23/2025 at 07:28AM

25
#>66 - shooker2012 / @shooker2012

01/23/2025 at 07:27AM

34
#>95 - shooker2012 / @shooker2012

01/23/2025 at 07:25AM

47
#>117 - shooker2012 / @shooker2012

01/23/2025 at 07:18AM