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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 80 remaining solutions by signing in and submitting your own entry
#81 Antse / @antse_fr - Score: 182 - 11/08/21 @ 18:39
:%s<0xc2><0xa8><BS>/^=<BS><BS>=<Left>^<Right>/<Left><Left>.<BS>*<BS>1<BS><Right> <Right>#/g<CR>:<Up><Left><Left><Left><Left><Left>=<Right><Right><Right><Right><Left>#<CR>uuu:%s/<0xc2><0xa8><BS>^# <Left><BS>= $ =<Left><Left><Left><Right><Right><Right><BS><BS><BS><BS> /<Left>:<BS><Right># /g<CR>:<Up><Left><Left><Left><Left><Left><Left><Left>=<Right><Right><Right>#<CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left>=<Right><Right><Right><Right>#<CR>:%s/$=<BS><Left>= <BS><Left> <Right><Right>//g<Left><Left><Left><Left><Left><Left><Left><Left><BS>A<BS>1<CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><BS>%<Right><Right><Right><Right>=<CR>:<Up><Left><Left><Left><Left>=<CR>:w<CR>:q<CR>

0 comments


Created by: @vimgolfleo1

81 active golfers, 315 entries

Leaderboard (lowest score wins):
22
#31 - $HA-|| / @s_k0731

11/29/2021 at 06:14PM

22
#32 - AMG / @anmigneer

12/14/2021 at 12:22PM

22
#33 - deusthe / @deusthe91

12/20/2021 at 02:27PM

22
#34 - Sergey Ryabko / @sergey_ryabko

01/17/2022 at 03:49PM

23
#35 - mevmev / @mevmev8

10/23/2021 at 04:42PM

23
#36 - auruby / @HenGreneggs

11/02/2021 at 02:23AM

23
#37 - Milovan Zogovic / @zogash

11/19/2021 at 01:25PM

23
#38 - Michael Herring / @mayoroftuesday

11/29/2021 at 03:38PM

23
#39 - Curtis Ault / @Curtis_Ault

12/02/2021 at 05:36PM

23
#40 - POSIX / @po6ix

01/07/2022 at 02:24AM

24
#41 - Kieron Browne / @KieronBrowne1

11/09/2021 at 09:47PM

25
#42 - zendokite / @zendokite

10/18/2021 at 10:50AM

25
#43 - Андрей Осипенко / @os1penko_andrey

10/20/2021 at 05:35PM

25
#44 - preethamrn / @preethamrn

10/21/2021 at 07:21AM

25
#45 - perseo / @PerseoGI

10/25/2021 at 10:29PM

25
#46 - John Doe / @JohnDoe75830353

11/26/2021 at 04:31PM

26
#47 - あああ / @kVaY5ghuwn6J11E

11/02/2021 at 08:57AM

27
#48 - yeonlee / @yeonlee13820351

11/08/2021 at 02:46PM

27
#49 - Snurli / @Snurlipus

11/20/2021 at 05:48PM

27
#50 - Christopher Williams / @chrstphrsnw

12/09/2021 at 11:47PM

29
#51 - Steve Wolligandt / @SteveWolligandt

12/07/2021 at 11:49AM

29
#52 - WhyIsThisFishInMyEar / @why_ear

01/15/2022 at 05:23PM

29
#53 - mariavimgolf / @mariavimgolf

01/16/2022 at 06:02PM

30
#54 - Jon Powers / @JonKPowers

10/27/2021 at 03:54PM

30
#55 - Paradoxskin / @paradoxskin

11/01/2021 at 09:13AM

30
#56 - A White Dwarf / @AWhiteDwarf1

12/03/2021 at 09:32PM

30
#57 - Der Natsch / @dernatsch

12/07/2021 at 02:14PM

31
#58 - Raiden di Rivia / @Raiden_di_Rivia

10/26/2021 at 11:01PM

31
#59 - thari.eth / @thari_eth

11/10/2021 at 02:06PM

31
#60 - Swaraj Dash / @swarajdash_

11/14/2021 at 10:37PM