I'm having trouble replacing question marks that appear in a text file.
Backslash escaping to literalize it doesn't seem to be working for me:
With a command like this:
:1,$s/\?//g
I get this error:
E64: \? follows nothing
Just use an unescaped question mark:
:%s/?//g
The escaped version is the "zero or one of the *previous*
atom" token. The same as "\=" (only it can't be used when
searching backwards)
:help /\=
:he /\?
You might be able to toggle this behavior with the 'magic'
setting. I just use the off-the-shelf setting for 'magic'
and don't fret too much about the inverse setting.
-tim