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 9v0061699fee000000000213

Wikitext headings to markdown

Convert the wikitext headings to markdown.

Start file
= First, a heading =
== Section ==
=== Deeper ===

As you can see, the headings have equals signs like =
in all kinds of funny places.

== Dets ==
Why not = this here.

```
var = 4

def funcy(min=1, max=2):
  return (min + max) / 2
```

=== Also ===
Please note.  Thanks.
End file
# First, a heading
## Section
### Deeper

As you can see, the headings have equals signs like =
in all kinds of funny places.

## Dets
Why not = this here.

```
var = 4

def funcy(min=1, max=2):
  return (min + max) / 2
```

### Also
Please note.  Thanks.

View Diff

1,3c1,3
< = First, a heading =
< == Section ==
< === Deeper ===
---
> # First, a heading
> ## Section
> ### Deeper
8c8
< == Dets ==
---
> ## Dets
18c18
< === Also ===
---
> ### Also

Solutions by @scpchick:

Unlock 23 remaining solutions by signing in and submitting your own entry
Created by: @vimgolfleo1

209 active golfers, 987 entries

Solutions by @scpchick:
20
#43 - scpchicken / @scpchick

10/19/2023 at 05:29PM

21
#>67 - scpchicken / @scpchick

10/19/2023 at 05:29PM

22
#>90 - scpchicken / @scpchick

10/19/2023 at 05:28PM

23
#>100 - scpchicken / @scpchick

10/19/2023 at 05:28PM

25
#>111 - scpchicken / @scpchick

10/19/2023 at 05:27PM

26
#>115 - scpchicken / @scpchick

10/19/2023 at 05:26PM

27
#>122 - scpchicken / @scpchick

10/19/2023 at 05:25PM

28
#>125 - scpchicken / @scpchick

10/19/2023 at 05:24PM

29
#>130 - scpchicken / @scpchick

10/19/2023 at 05:24PM

30
#>136 - scpchicken / @scpchick

10/19/2023 at 05:23PM

31
#>142 - scpchicken / @scpchick

10/19/2023 at 05:22PM

32
#>147 - scpchicken / @scpchick

10/19/2023 at 05:21PM

41
#>158 - scpchicken / @scpchick

10/19/2023 at 05:20PM

42
#>161 - scpchicken / @scpchick

10/19/2023 at 05:20PM

44
#>162 - scpchicken / @scpchick

10/19/2023 at 05:19PM

45
#>164 - scpchicken / @scpchick

10/19/2023 at 05:17PM

47
#>165 - scpchicken / @scpchick

10/19/2023 at 05:16PM

49
#>168 - scpchicken / @scpchick

10/19/2023 at 05:12PM

59
#>182 - scpchicken / @scpchick

10/19/2023 at 05:08PM

61
#>184 - scpchicken / @scpchick

10/19/2023 at 05:07PM

62
#>184 - scpchicken / @scpchick

10/19/2023 at 05:04PM

66
#>186 - scpchicken / @scpchick

10/19/2023 at 05:03PM

76
#>196 - scpchicken / @scpchick

10/19/2023 at 05:00PM