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):
42
#421 - Steve Racanovic / @steve_racanovic

12/17/2019 at 10:18PM

42
#422 - Bitt Faulk / @bittfaulk

02/20/2020 at 08:52PM

43
#423 - Adam Bumpus / @bumpus_adam

10/01/2019 at 01:36PM

43
#424 - Roman / @Romezzz_

11/09/2019 at 07:40AM

43
#425 - Bida Wa / @bida_wa

11/27/2019 at 04:58PM

43
#426 - Daniel Vaqueiro / @chimidea

12/09/2019 at 07:40PM

43
#427 - jackjsk / @jackjsk1

01/17/2020 at 04:17AM

43
#428 - bigsystem / @bigsystem2

05/28/2020 at 02:50PM

43
#429 - fff / @fff51460170

01/13/2021 at 03:23AM

44
#430 - 0x3bb5 / @0x3bb5

09/19/2019 at 04:38PM

44
#431 - samet ぷ / @jssamet

03/01/2020 at 08:12PM

44
#432 - Andrii / @Andrii61628511

03/21/2020 at 02:38PM

45
#433 - Nick Argyle / @nickargyle

10/13/2019 at 03:13AM

45
#434 - Christophe Kafrouni / @KafrouniChris

04/30/2020 at 04:42PM

46
#435 - sspan / @sspantz

09/23/2019 at 02:28AM

46
#436 - John Poon / @shinvalor

12/29/2019 at 08:43PM

46
#437 - David Cherednik / @david_cherednik

05/22/2020 at 06:56PM

46
#438 - Andreas Burg / @der_abu

10/10/2020 at 12:41PM

47
#439 - Michael Haddad / @mrhaddad

09/16/2019 at 03:32PM

47
#440 - Thomas Edlich / @grumpybavarian

09/27/2019 at 08:56PM

47
#441 - Jonathan Yong / @yongrenjie

11/28/2019 at 05:34PM

47
#442 - Richard Pape / @Drippydik187

04/05/2020 at 04:16PM

48
#443 - Josep / @Joseptec

12/23/2019 at 11:49AM

49
#444 - Bruno Machado / @brunosmmachado

10/20/2019 at 11:19AM

49
#445 - Daniel Johnston / @Dan8720Dj

02/03/2020 at 05:51PM

49
#446 - seul / @seul15987381

04/21/2020 at 11:55AM

50
#447 - Soptik / @Soptik3

09/24/2019 at 09:02PM

51
#448 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 01:33PM

51
#449 - moh ayaya / @AyayaMoh

10/26/2020 at 09:29PM

52
#450 - abhijeet patil / @abhijeetptl5

09/02/2020 at 07:09PM