wincent / scalpel

🔪 Fast within-file word replacement for Vim
MIT License
118 stars 4 forks source link

Can't specify replacement patterns that contain slashes #5

Closed wincent closed 7 years ago

wincent commented 7 years ago

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 7 years ago

Should evidently support #foo#bar# and probably other variants too.

wincent commented 7 years ago

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+/+//+