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

507 active golfers, 2059 entries

Leaderboard (lowest score wins):
41
#451 - m1t0z / @m1t0z1

09/25/2019 at 06:48PM

41
#452 - Jordan Joe Watson / @jordanjoewatson

12/01/2020 at 09:12PM

41
#453 - Haruaki Tomida / @haruyan-hopemucci

12/05/2024 at 06:25AM

42
#454 - ~• Isaac [5] •~ / @isac_frusgoffer

10/17/2019 at 10:58PM

42
#455 - Steve Racanovic / @steve_racanovic

12/17/2019 at 10:18PM

42
#456 - Bitt Faulk / @bittfaulk

02/20/2020 at 08:52PM

43
#457 - Adam Bumpus / @bumpus_adam

10/01/2019 at 01:36PM

43
#458 - Roman / @Romezzz_

11/09/2019 at 07:40AM

43
#459 - Bida Wa / @bida_wa

11/27/2019 at 04:58PM

43
#460 - Daniel Vaqueiro / @chimidea

12/09/2019 at 07:40PM

43
#461 - jackjsk / @jackjsk1

01/17/2020 at 04:17AM

43
#462 - bigsystem / @bigsystem2

05/28/2020 at 02:50PM

43
#463 - fff / @fff51460170

01/13/2021 at 03:23AM

43
#464 - SRINIVASU SALADI / @SRINIVASUS22587

02/10/2025 at 03:57PM

44
#465 - 0x3bb5 / @0x3bb5

09/19/2019 at 04:38PM

44
#466 - samet ぷ / @jssamet

03/01/2020 at 08:12PM

44
#467 - Andrii / @Andrii61628511

03/21/2020 at 02:38PM

45
#468 - Nick Argyle / @nickargyle

10/13/2019 at 03:13AM

45
#469 - Christophe Kafrouni / @KafrouniChris

04/30/2020 at 04:42PM

46
#470 - sspan / @sspantz

09/23/2019 at 02:28AM

46
#471 - JP / @shinvalor

12/29/2019 at 08:43PM

46
#472 - David Cherednik / @david_cherednik

05/22/2020 at 06:56PM

46
#473 - Andreas Burg / @der_abu

10/10/2020 at 12:41PM

47
#474 - Michael Haddad / @mrhaddad

09/16/2019 at 03:32PM

47
#475 - Thomas Edlich / @grumpybavarian

09/27/2019 at 08:56PM

47
#476 - Jonathan Yong / @yongrenjie

11/28/2019 at 05:34PM

47
#477 - Richard Pape / @Drippydik187

04/05/2020 at 04:16PM

48
#478 - Josep / @Joseptec

12/23/2019 at 11:49AM

49
#479 - Bruno Machado / @brunosmmachado

10/20/2019 at 11:19AM

49
#480 - Daniel Johnston / @Dan8720Dj

02/03/2020 at 05:51PM