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

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

204 active golfers, 981 entries

Solutions by @futachima:
20
#33 - fufuror / @futachima

01/30/2023 at 11:03AM

21
#>64 - fufuror / @futachima

01/30/2023 at 10:47AM

22
#>89 - fufuror / @futachima

01/30/2023 at 10:45AM

23
#>98 - fufuror / @futachima

01/29/2023 at 10:59AM

26
#>113 - fufuror / @futachima

01/29/2023 at 10:54AM

27
#>119 - fufuror / @futachima

01/29/2023 at 10:53AM

28
#>122 - fufuror / @futachima

01/29/2023 at 10:52AM

28
#>122 - fufuror / @futachima

01/29/2023 at 10:58AM

29
#>127 - fufuror / @futachima

01/29/2023 at 10:44AM

34
#>146 - fufuror / @futachima

01/29/2023 at 10:42AM

36
#>146 - fufuror / @futachima

01/29/2023 at 09:24AM

37
#>148 - fufuror / @futachima

01/29/2023 at 09:20AM

41
#>155 - fufuror / @futachima

01/29/2023 at 08:51AM

42
#>156 - fufuror / @futachima

01/29/2023 at 08:09AM

44
#>158 - fufuror / @futachima

01/29/2023 at 07:37AM

44
#>158 - fufuror / @futachima

01/29/2023 at 07:43AM

44
#>158 - fufuror / @futachima

01/29/2023 at 07:49AM

51
#>165 - fufuror / @futachima

01/29/2023 at 07:35AM

52
#>165 - fufuror / @futachima

01/29/2023 at 07:32AM

55
#>174 - fufuror / @futachima

01/29/2023 at 06:01AM

61
#>180 - fufuror / @futachima

01/29/2023 at 05:59AM

62
#>180 - fufuror / @futachima

01/29/2023 at 05:56AM

69
#>184 - fufuror / @futachima

01/29/2023 at 05:53AM

71
#>187 - fufuror / @futachima

01/28/2023 at 05:14PM

76
#>192 - fufuror / @futachima

01/28/2023 at 04:12PM

91
#>199 - fufuror / @futachima

01/28/2023 at 04:08PM