Auto Pairing with Keyboard Maestro Link
I really like Kaushik's use of a timer in the macro to provide different functionality based on the rate of entry. I might riff on some of these tricks for new macros. Although I do think BBEdit already has some nice features to accomplish complex text wrapping, I have Keyboard Maestro macros for application that are not as feature rich as BBEdit.
By way of Clark's Tech Blog.