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 113 remaining solutions by signing in and submitting your own entry
#114 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

114 active golfers, 453 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

16
#12 - shooker2012 / @shooker2012

01/23/2025 at 07:32AM

16
#13 - JohanNorberg / @JohanNorberg

01/25/2025 at 09:42PM

16
#14 - Sean Stout / @sfstout

01/28/2025 at 07:18AM

16
#15 - 0xf00ff00f / @0xf00ff00f

02/09/2025 at 12:48AM

16
#16 - chujDK / @chujDK

02/24/2025 at 02:58AM

16
#17 - satetheus-vimgolf / @SVimgolf

02/27/2025 at 08:15PM

16
#18 - aaay-aaay / @aaay-aaay

03/27/2025 at 04:43AM

16
#19 - msbatarce / @msbatarce

03/28/2025 at 04:11PM

16
#20 - Abdelrahman Madkour / @a3madkour

04/05/2025 at 11:33AM

16
#21 - Ondřej Lysoněk / @olysonek

04/12/2025 at 09:08PM

17
#22 - Brendan Maginnis / @brendanator

12/09/2024 at 04:37PM

17
#23 - Herschel / @herschel-ma

01/01/2025 at 06:30AM

17
#24 - Victor Pfautz / @vpfautz

01/23/2025 at 02:31PM

17
#25 - Herman Stavelin / @HerSta

01/27/2025 at 11:42AM

17
#26 - Matt / @mcr05

02/26/2025 at 10:08PM

17
#27 - Michael Cuffaro / @maiku1008

03/02/2025 at 06:49PM

18
#28 - MAIIIII / @TakunMaii

12/17/2024 at 05:45AM

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

12/28/2024 at 07:53PM

19
#30 - iBrahizy / @iBrahizy

01/02/2025 at 06:42AM