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

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

210 active golfers, 1003 entries

Solutions by @spookypanda7:
20
#39 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:13AM

21
#>67 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:12AM

22
#>91 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:12AM

23
#>100 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:11AM

24
#>103 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:11AM

25
#>112 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:10AM

26
#>116 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:09AM

27
#>123 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:08AM

28
#>126 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:08AM

29
#>131 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:07AM

30
#>137 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:06AM

31
#>143 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:05AM

34
#>150 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:04AM

41
#>159 - Matthew Wilson / @spookypanda7

08/08/2023 at 05:00AM

42
#>161 - Matthew Wilson / @spookypanda7

08/08/2023 at 04:58AM

44
#>163 - Matthew Wilson / @spookypanda7

08/08/2023 at 04:51AM

45
#>165 - Matthew Wilson / @spookypanda7

08/08/2023 at 04:49AM

49
#>169 - Matthew Wilson / @spookypanda7

08/08/2023 at 04:47AM

52
#>170 - Matthew Wilson / @spookypanda7

08/08/2023 at 04:44AM

57
#>182 - Matthew Wilson / @spookypanda7

08/08/2023 at 04:42AM

58
#>182 - Matthew Wilson / @spookypanda7

08/08/2023 at 12:44AM