Can't specify replacement patterns that contain slashes
Closed this issue · 2 comments
wincent commented
ie. can't replace "foo" with "foo/bar" due to this check.
Known limitation, but one that hasn't bothered me until today. Might need to rejig that.
wincent commented
Should evidently support #foo#bar#
and probably other variants too.
wincent commented
From the help:
*E146*
Instead of the '/' which surrounds the pattern and replacement string, you
can use any other single-byte character, but not an alphanumeric character,
'\', '"' or '|'. This is useful if you want to include a '/' in the search
pattern or replacement string. Example: >
:s+/+//+