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):
27
#151 - Ryan Nevius / @ryannevius

03/17/2020 at 12:31PM

27
#152 - Seve / @Seve_py

04/09/2020 at 12:21PM

27
#153 - edvrds / @edvrds

04/12/2020 at 05:36PM

27
#154 - Christophe Robillard / @krichtof

05/05/2020 at 08:22PM

27
#155 - iBhagwan / @iiBhagwan

05/11/2020 at 05:47AM

27
#156 - Sai Hemanth / @saihemanth9019

05/11/2020 at 12:50PM

27
#157 - Pawel Wenda / @pwlwnd

05/13/2020 at 10:42AM

27
#158 - 于吉星 / @fishermryn

05/23/2020 at 06:12AM

27
#159 - Sven Kõiv / @KoivSven

05/23/2020 at 05:56PM

27
#160 - Vim Golfer / @vimgolfing

05/24/2020 at 02:40PM

27
#161 - Bob / @Bob37174065

06/01/2020 at 03:12PM

27
#162 - vimgolf-sensei / @VimgolfS

06/03/2020 at 01:55PM

27
#163 - otfsenter / @otfsenter

06/03/2020 at 04:14PM

27
#164 - JLObject / @powful_panda

07/01/2020 at 08:12PM

27
#165 - Mitchell Horning / @HorningMitchell

07/04/2020 at 02:06PM

27
#166 - L Z / @unidevel

07/06/2020 at 02:53PM

27
#167 - smlbrngr / @smlbrngr

07/13/2020 at 04:12PM

27
#168 - Dmitry Branitskiy / @b1azer

07/15/2020 at 05:52PM

27
#169 - Виталий Макаров / @avada_keda_bra

07/16/2020 at 10:09PM

27
#170 - Jason / @jason_eveleth

07/23/2020 at 09:24AM

27
#171 - Norman Liu / @normanwliu

07/25/2020 at 11:52PM

27
#172 - Luc Kien Hang / @luckienhang

09/04/2020 at 02:07AM

27
#173 - akouryy / @akouryy1

09/07/2020 at 05:04AM

27
#174 - GenericHardwareGamer / @GnrikHrdwrGamer

09/07/2020 at 12:20PM

27
#175 - AAbraxas / @AAbraxas1

10/13/2020 at 07:51PM

27
#176 - Leland Paul Kusmer / @lelandpaul

10/21/2020 at 02:15PM

27
#177 - wilsonept / @wilsonept1

10/26/2020 at 10:47PM

27
#178 - quemeraisc / @quemeraisc

11/05/2020 at 11:06AM

27
#179 - Miłosz Łakomy / @foobar01123

11/11/2020 at 02:20PM

27
#180 - MrRubiksSC / @RubiksSc

11/27/2020 at 03:09AM