In reply to @drvinceknight

@drvinceknight and while doing this properly, you might as well deal with escaped dollars:

:%s/\\\@<!\$\(\([^\$]\|\\\$\)*\)\\\@<!\$/\\(\1\\)/g

3 favourites 0 retweets

View this tweet on twitter.com

This tweet as JSON