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):
26
#61 - sapir malka / @sapir5522

12/26/2019 at 07:48AM

26
#62 - zqi / @zq11110320

12/27/2019 at 06:36AM

26
#63 - JimmyGymglish / @JGymglish

12/27/2019 at 03:44PM

26
#64 - hokonch / @hokonch

01/04/2020 at 05:47PM

26
#65 - caffeineism / @caffeineism

01/06/2020 at 02:38AM

26
#66 - hereforthepermission / @herefortheperm1

01/20/2020 at 02:22PM

26
#67 - く / @noblack_nolife

01/21/2020 at 08:49AM

26
#68 - KingYames / @JamesZeHunter

02/17/2020 at 05:55AM

26
#69 - golferN / @golferN3

02/28/2020 at 06:17PM

26
#70 - floyd / @floyd10086

03/01/2020 at 05:32PM

26
#71 - Paul Parker / @PaulDesmoParker

03/09/2020 at 12:13AM

26
#72 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/15/2020 at 08:45PM

26
#73 - BnnGolfer / @BnnGolfer

03/21/2020 at 12:54AM

26
#74 - r4d1um / @r4d1um

03/21/2020 at 04:52PM

26
#75 - Michael Brauweiler / @m_brauweiler

03/22/2020 at 05:28PM

26
#76 - Toby Hawkins / @Toby_Hawkins

03/24/2020 at 06:38PM

26
#77 - mury liang / @muryliang

04/07/2020 at 02:06PM

26
#78 - Moatvald / @moatvald

04/13/2020 at 10:59AM

26
#79 - Andreas Buhr / @andreas_buhr

05/21/2020 at 05:49PM

26
#80 - Romain / @djizeuscoco

06/10/2020 at 05:02PM

26
#81 - mocihan / @mocihan

06/29/2020 at 07:05AM

26
#82 - Андрей / @appomsk

08/20/2020 at 09:58AM

26
#83 - Piotr Kaznowski / @kaznowski

09/18/2020 at 07:05PM

26
#84 - Leo Winters / @LeoPWinters

10/19/2020 at 06:02PM

26
#85 - Neverlandrunner / @neverlandrunner

12/06/2020 at 06:47AM

26
#86 - nd183 / @nd1832

12/09/2020 at 03:48PM

26
#87 - pherapont / @pherapont1

01/21/2021 at 03:26AM

26
#88 - tylertucker202 / @tylertucker202

01/27/2021 at 02:50AM

26
#89 - Peter Pandorum / @PeterPandorum

08/10/2021 at 08:43AM

27
#90 - Andrey / @andreyrmg

09/16/2019 at 10:51AM