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/

@jkreeftmeijer insane, it isn't on my vim knoledwge level :-)

@microbeta Since the document I'm editing only uses lists with dashes, `%s/\(- .\+\)\./\1/g` would have worked as well, but I'm a sucker for over-the-top unreadable Vim substitutions. ;)

Sign in to participate in the conversation

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!