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

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

209 active golfers, 987 entries

Solutions by @nak38223985244:
21
#66 - naka / @nak38223985244

06/22/2023 at 01:07PM

22
#>90 - naka / @nak38223985244

06/22/2023 at 01:05PM

23
#>99 - naka / @nak38223985244

06/22/2023 at 01:01PM

26
#>115 - naka / @nak38223985244

06/22/2023 at 12:59PM

27
#>122 - naka / @nak38223985244

06/22/2023 at 12:54PM

28
#>125 - naka / @nak38223985244

06/22/2023 at 12:52PM

29
#>130 - naka / @nak38223985244

06/22/2023 at 12:46PM

30
#>136 - naka / @nak38223985244

06/22/2023 at 12:43PM

31
#>142 - naka / @nak38223985244

06/22/2023 at 12:34PM

31
#>142 - naka / @nak38223985244

06/22/2023 at 12:41PM

34
#>149 - naka / @nak38223985244

06/22/2023 at 12:31PM

36
#>150 - naka / @nak38223985244

06/21/2023 at 12:26PM

37
#>151 - naka / @nak38223985244

06/21/2023 at 12:23PM

45
#>164 - naka / @nak38223985244

06/21/2023 at 12:20PM

46
#>164 - naka / @nak38223985244

06/21/2023 at 12:17PM

48
#>167 - naka / @nak38223985244

06/20/2023 at 01:34PM

76
#>196 - naka / @nak38223985244

06/20/2023 at 01:28PM