Last Updated: February 25, 2016
·
2.553K
· kkuchta

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