Vim search/replace with regex pipe character
Apparently you need to escape the pipe character in vim search and replace:
:%s/(foo\|bar)/fubur/g
Written by Kevin Kuchta
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#