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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 53 remaining solutions by signing in and submitting your own entry
#54 lovebigwei / @lovebigwei - Score: 170 - 12/18/24 @ 07:54
:v/POST\\<BS>|PUL/d<CR>:$<BS>%s/\v/<BS>(\w<BS><BS>)<Left>\<BS>.+<Right>{<BS>{\w+}<Left><Left>\<BS><Left><Left><Left>(<Right><Right><Right><Right><Right>)<BS><BS><BS><BS><BS><BS><BS>\zn{<BS><BS><BS><BS><Left><BS>{-}\zs{<BS>}<BS>{<Left><BS>n<BS>e<Left><Left><Left><Left><Left><Left><BS>*<BS>-<BS><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS>)<Left>.=<BS><BS><Left><Left><Left>.<Right><Right><Right><Right><Right><Right><Right><Right><Right><Left>}<BS>{<BS>{<BS>{<Left>\<Right><Right>(\w+)}<BS>\}/\v<BS>2=/g<CR>:wq<CR>

0 comments


Created by: @iantalks

54 active golfers, 212 entries

Leaderboard (lowest score wins):
16
#1 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

12/03/2024 at 08:25PM

16
#2 - John Braxler / @braxler

12/03/2024 at 09:12PM

16
#3 - Pablo Cárdenas / @pablo_cardenasb

12/03/2024 at 09:48PM

16
#4 - Pablo Acuna / @pacuna

12/03/2024 at 09:55PM

16
#5 - Peppa Pig / @PeppaPigSg

12/04/2024 at 12:26AM

16
#6 - wobfranklin / @wobfranklin

12/14/2024 at 11:43PM

16
#7 - aconamos / @aconamos

12/18/2024 at 03:19AM

16
#8 - BlockLune / @BlockLune

12/19/2024 at 06:51AM

16
#9 - dejam2007 / @dejam2007

12/28/2024 at 02:23PM

16
#10 - Patrick Motard / @patrick-motard

01/12/2025 at 05:47AM

16
#11 - Chino / @MarcoMeinardi

01/12/2025 at 09:50AM

17
#12 - Brendan Maginnis / @brendanator

12/09/2024 at 04:37PM

17
#13 - Herschel / @herschel-ma

01/01/2025 at 06:30AM

18
#14 - MAIIIII / @TakunMaii

12/17/2024 at 05:45AM

19
#15 - Frédéric Heulin / @talineo

12/28/2024 at 07:53PM

19
#16 - iBrahizy / @iBrahizy

01/02/2025 at 06:42AM

19
#17 - Bas van den Wollenberg / @brw

01/10/2025 at 09:01PM

20
#18 - Anton Savelyev / @PoiXP

01/01/2025 at 04:29PM

21
#19 - abgalphbetz / @abgalphabetz

12/04/2024 at 02:09PM

21
#20 - Magnus Wahlstrand / @magnuswahlstrand

01/03/2025 at 06:05PM

21
#21 - Brando / @brandonce

01/18/2025 at 07:46AM

22
#22 - Aliaksandr / @Admiralissimus

12/13/2024 at 09:05PM

22
#23 - myu-innocence / @myu-innocence

12/19/2024 at 03:09PM

22
#24 - SD / @SD24757629

12/25/2024 at 03:53PM

22
#25 - Guilherme / @gsionek

01/02/2025 at 05:55PM

22
#26 - ashfinal / @ashfinal

01/16/2025 at 05:33AM

23
#27 - k1mosabe / @k1mosabe

12/08/2024 at 03:16AM

23
#28 - MartnRamtin / @MartnRamtin

12/11/2024 at 10:47PM

24
#29 - OuterSoda / @OuterSoda

01/22/2025 at 10:13AM

25
#30 - Biswajit / @biswajitpatra

12/12/2024 at 11:27AM