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 140 remaining solutions by signing in and submitting your own entry
#141 Sergey Valiev / @Valiev - Score: 124 - 02/19/25 @ 12:29
/{.\+}<CR>wdwGpuPuo<Esc>pO<Esc>ou<Esc>uu<C-O><C-O>nwdwuNNNNwdwGpuP<Esc>uo<Esc>pkkkkwkwdwGpuo<Esc>pNNwdwGo<Esc>pnwdwGpuO<Esc>dd<Esc>op<Esc>uuuudwGo<Esc>pkkkkA=<Esc>j.j.j.j.kkkkkdgg:wq<CR>

0 comments


Created by: @iantalks

141 active golfers, 583 entries

Leaderboard (lowest score wins):
23
#61 - e.cousinet / @ecousinet

02/16/2025 at 08:57AM

24
#62 - OuterSoda / @OuterSoda

01/22/2025 at 10:13AM

24
#63 - Paroxyss / @Paroxyss

01/29/2025 at 03:16PM

24
#64 - mevmev / @mevmev8

02/08/2025 at 04:16AM

24
#65 - RoundRobinHood / @RoundRobinHood

04/26/2025 at 10:23AM

25
#66 - Biswajit / @biswajitpatra

12/12/2024 at 11:27AM

25
#67 - z0rzi / @z0rzi

01/30/2025 at 04:35PM

25
#68 - Ryo3110 / @r-3110

03/03/2025 at 01:03AM

25
#69 - Fredrik Robertsen / @fredrikr79

03/19/2025 at 05:46PM

25
#70 - Ole Jan Lars Riemann / @ojlr

04/03/2025 at 03:05PM

25
#71 - ak@developer / @Ajay-056

04/20/2025 at 06:04AM

26
#72 - Nathan Gilman / @npgilman

04/16/2025 at 10:18PM

26
#73 - lovebigwei / @lovebigwei

04/17/2025 at 05:57AM

27
#74 - Fionn Fitzmaurice / @fionn

12/25/2024 at 03:51PM

27
#75 - _3tHeR_ / @3ther-joyboy

01/28/2025 at 08:41AM

27
#76 - Theau Poulat / @theaupoulat

04/03/2025 at 05:14PM

27
#77 - Gino Fazari / @GinoF

04/14/2025 at 03:58AM

28
#78 - iantalks / @iantalks

12/04/2024 at 09:12AM

28
#79 - Jorge Nonell / @JorgeNonel56315

01/14/2025 at 08:21PM

28
#80 - rasputins / @rasputins

02/15/2025 at 04:35PM

28
#81 - Kirk Matt / @Th0ught09

04/24/2025 at 03:56PM

28
#82 - Jaxson Pahukula / @jaxsonp

04/26/2025 at 05:08AM

29
#83 - Daniel Cook / @1dancook

12/16/2024 at 05:58AM

29
#84 - Caleb McIrvin / @cmmcirvin

01/16/2025 at 05:20PM

29
#85 - Kenshiro Ueda / @weapom923

02/18/2025 at 08:59AM

29
#86 - HADIOUCHE Azouaou / @Thoro-las

03/28/2025 at 10:59PM

29
#87 - Gigo / @GiggioG

04/02/2025 at 09:00PM

29
#88 - Austin / @austinlongmn

04/24/2025 at 01:13AM

29
#89 - ta / @bmountain

04/27/2025 at 05:52PM

30
#90 - Tedis Agolli / @TedisAgolli

02/07/2025 at 06:04PM