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 by @pherapont1:

Unlock 8 remaining solutions by signing in and submitting your own entry
Created by: @rax0m

494 active golfers, 1996 entries

Solutions by @pherapont1:
26
#83 - pherapont / @pherapont1

01/21/2021 at 03:26AM

27
#>191 - pherapont / @pherapont1

01/21/2021 at 03:24AM

28
#>234 - pherapont / @pherapont1

01/21/2021 at 03:21AM

29
#>268 - pherapont / @pherapont1

01/21/2021 at 03:19AM

30
#>286 - pherapont / @pherapont1

01/21/2021 at 03:16AM

35
#>375 - pherapont / @pherapont1

01/21/2021 at 03:13AM

36
#>391 - pherapont / @pherapont1

01/21/2021 at 03:04AM

37
#>407 - pherapont / @pherapont1

01/21/2021 at 03:01AM