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 5d7f565deac0df000cfc2154

Line under headers

Put a line under each header, and remove the other markdown formatting.

Start file
## Headers

## To

## Underline
End file
Headers
-------

Are
---

Underlined
----------

View Diff

1c1,2
< ## Headers
---
> Headers
> -------
3c4,5
< ## To
---
> Are
> ---
5c7,8
< ## Underline
---
> Underlined
> ----------

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 471 remaining solutions by signing in and submitting your own entry
#472 Pavlo Hadzheha / @PHadzheha - Score: 133 - 02/19/21 @ 10:13
:<BS>?<BS>kjjwcwAre<Esc>kkjjjjAd<Esc>:%s/\(##\s\)\(.\+\)/\=submatch(2) . "\r" . rea<BS>peat(submatch(2)<C-Left><C-Left><C-Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Left>str_<BS><BS><BS><BS>'-', strchars*<BS>(<Right><C-Right>))/<CR>:wq<CR>

0 comments


Created by: @rax0m

472 active golfers, 1918 entries

Leaderboard (lowest score wins):
34
#331 - José / @AngelGaldamez

09/22/2019 at 11:15PM

34
#332 - ylv / @ylv_io

09/26/2019 at 10:08PM

34
#333 - Alexander v Trijffel / @avtnl

10/10/2019 at 10:08PM

34
#334 - leo / @leo28356948

10/17/2019 at 04:12AM

34
#335 - roemermeier / @roemermeier

10/19/2019 at 08:12AM

34
#336 - 0xNinja / @0x_Ninja

10/25/2019 at 08:16AM

34
#337 - David / @dalbertom

12/01/2019 at 07:45PM

34
#338 - Jason Neylon / @jasonneylon

12/14/2019 at 12:15PM

34
#339 - John Otters / @OttersJohn

12/15/2019 at 05:28PM

34
#340 - None / @sh1chuang

12/30/2019 at 10:24AM

34
#341 - Rodrigo V. Lopes / @rodvlopes

03/27/2020 at 12:13AM

34
#342 - Patrick Sanan / @patricksanan

05/26/2020 at 12:51PM

34
#343 - Pat Haggerty / @HaggertyPat

09/02/2020 at 12:04PM

34
#344 - Ivan Kwong / @IvanKwong5

09/26/2020 at 05:00PM

34
#345 - Mickaël Menu / @mickaelmenu

10/25/2020 at 04:06PM

34
#346 - zapakh / @zapakh

01/21/2021 at 11:55PM

34
#347 - vim_maxter / @MaxterVim

07/02/2021 at 10:59AM

35
#348 - Ariel Miculas / @ArielMiculas

09/18/2019 at 11:41AM

35
#349 - Ole / @Ole_Lnkoje

09/18/2019 at 12:19PM

35
#350 - vicver09 / @vicver091

10/24/2019 at 08:43PM

35
#351 - rr / @rodgeur31

10/25/2019 at 09:49PM

35
#352 - Przemysław Michalak / @dambusio

11/25/2019 at 08:06PM

35
#353 - Eric Johnson / @dej79

12/03/2019 at 09:18AM

35
#354 - Brent Westbrook / @westbrook_brent

01/17/2020 at 10:10PM

35
#355 - volandkit / @volandkit

04/20/2020 at 05:01PM

35
#356 - dule2607 / @dule26071

04/29/2020 at 10:12PM

35
#357 - mstronam / @mstronam

10/02/2020 at 04:48AM

35
#358 - Arryue / @Arryue2

12/27/2020 at 07:55AM

35
#359 - Faizan Ansari / @faizan_157

01/31/2021 at 02:55PM

36
#360 - Abner jr / @Abnerjr19

09/19/2019 at 04:34AM