Here’s a sneak peek at my upcoming book named “Technical editing with Vim substitutions”, which shows removing trailing periods from markdown lists:

:%s/\(\(-\|*\|\d*\.\) .\+\)./\1/

Follow

Actually, that substitution removes the last character from each list item in the file instead of just periods. 🤷‍♀️

Remember; don’t forget to `\` your `.`’s!

@jkreeftmeijer Remember kids: Always escape your RegeXes, or ̱͔ͅZ̷A̗̣͉͉͈L҉͕̳̻͇G̙Ǫ͓!̶͚̹ͅ will come and get you.

@berkes Well, this *𝒊s* quite a simple substitut𝑖𝑜n. Aside from that missing esc͒ͪo͛ͫape, it 𝘄e̿̔̉𝗿𝗸𝘀 𝗳𝗶𝗻𝗲 f̵o̵r̵ ʰᵉ ᶜᵒᵐ̡ᵉ̶ˢ a pon̷y use cag͇̫͛͆̾ͫ̑͆e*̶͑̾̾ lIKeTH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!