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 208 remaining solutions by signing in and submitting your own entry
#209 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

209 active golfers, 987 entries

Leaderboard (lowest score wins):
37
#151 - леди питон / @SofiaLadyPython

10/24/2021 at 10:46PM

38
#152 - Shreeram / @Shrimpraam

02/17/2022 at 09:03PM

38
#153 - onkeL / @onkeL_cs

03/19/2022 at 11:40PM

38
#154 - Nicolas Kreutzer / @NigiCereal

05/19/2022 at 04:49PM

38
#155 - ⚫ hgtp://Shifor 🛠️ / @shifor_gnome

03/03/2023 at 02:41PM

39
#156 - 关红伟 / @speed2exe

10/25/2021 at 04:47PM

39
#157 - Maurice Schmicking / @m_schmicking

01/03/2024 at 11:57AM

41
#158 - Siddharth Murali / @SidTweetsALess

06/28/2022 at 07:49AM

41
#159 - Thermospore / @Thermospore

05/21/2024 at 06:31AM

42
#160 - gobborg / @tamalefencer

11/20/2021 at 12:56AM

42
#161 - 으앙 / @meri2727

10/14/2023 at 06:21AM

44
#162 - Александр Черенков / @AleksandrCeren3

08/10/2022 at 01:22AM

45
#163 - SwordSwordSwordBird / @SwordSwordBird

11/13/2021 at 06:38AM

45
#164 - Justin Haaheim / @justinhaaheim

02/18/2022 at 11:55AM

47
#165 - Andreas Aumann / @andreasaumann

03/20/2022 at 07:33PM

48
#166 - Chris Milson / @_shlappas

11/06/2021 at 09:24PM

48
#167 - nico yazawa / @yazawa268

01/30/2022 at 02:49AM

49
#168 - Chun Chanjun / @CChanjun

03/23/2022 at 12:33PM

49
#169 - Andy / @andyfoster

04/18/2024 at 10:54AM

53
#170 - Ankit Aabad / @AabadAnkit

10/17/2021 at 07:01AM

53
#171 - Avery Carty / @AveryCarty

12/30/2021 at 04:31AM

53
#172 - xiaoao1024 / @xiaoao1024

05/07/2024 at 11:23AM

54
#173 - Олександр Євтушенко / @oyevtushe

10/30/2021 at 09:40PM

54
#174 - Simon / @mopsdiv

11/07/2021 at 12:10PM

54
#175 - Peter Szerzo / @peterszerzo

07/04/2023 at 03:26PM

55
#176 - anonymouse / @anonymo65837183

04/06/2022 at 03:59AM

55
#177 - Nick Salesky / @NickSalesky

08/13/2022 at 04:15AM

55
#178 - Ratkovszki István / @RatkovszkiIstvn

09/08/2022 at 09:08PM

55
#179 - jpggpj / @jpggpj

12/10/2023 at 05:22PM

56
#180 - nayan / @rednayan

10/29/2021 at 07:20AM