Vim HTML img tag to markdown
DATE: 2020-06-30
AUTHOR: John L. Godlee
I was quite proud of myself for figuring this one out in only about 2 minutes, in Vim. Starting with an HTML img tag:
And using this Vim regex:
s/![]()
To create this Markdown formatted image link:
This was my first proper outing using \{-} for non-greedy matching, used on the double quotes ". It also uses capture groups \(.{-}\) -> \1.