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 @etothepi16:

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

507 active golfers, 2059 entries

Solutions by @etothepi16:
24
#19 - Paul McDowell / @etothepi16

05/23/2024 at 08:28PM

25
#>53 - Paul McDowell / @etothepi16

05/23/2024 at 08:27PM

26
#>89 - Paul McDowell / @etothepi16

05/23/2024 at 08:25PM

27
#>203 - Paul McDowell / @etothepi16

05/23/2024 at 08:23PM

28
#>242 - Paul McDowell / @etothepi16

05/23/2024 at 08:23PM

29
#>274 - Paul McDowell / @etothepi16

05/23/2024 at 08:20PM

31
#>311 - Paul McDowell / @etothepi16

05/23/2024 at 08:02PM

33
#>348 - Paul McDowell / @etothepi16

05/23/2024 at 08:00PM

36
#>399 - Paul McDowell / @etothepi16

05/23/2024 at 07:55PM

37
#>415 - Paul McDowell / @etothepi16

05/23/2024 at 07:53PM

41
#>452 - Paul McDowell / @etothepi16

05/23/2024 at 07:51PM

46
#>473 - Paul McDowell / @etothepi16

05/23/2024 at 07:45PM