[wplug] vi question
John Harrold
jmh17 at pitt.edu
Thu Jul 3 11:21:04 EDT 2003
Sometime in July Scott Eicher assaulted the keyboard and produced:
|
| For you vi users I have a question:
|
| I would like to delete all ^M control characters from an ascii file. Here is
| what I tried to accomplish this but it doesn't work:
|
| :%s/\^M//g
|
instead of the carrot+M combination try ctrl+q ctrl+m. this should stick a
little blue, or whatever color, ^M there.
| It gives me this message:
|
| Substitute pattern match failed
|
| I'm thinking that I'm not specifying the ^M properly but I'm not sure how
| else to specify it.
|
| Any help would be appreciated.
|
| Thanks,
| Scott
--
--------------------------------------------------------------------------
| /"\
john harrold | \ / ASCII ribbon campaign
jmh at member.fsf.org | X against HTML mail
the most useful idiot | / \
--------------------------------------------------------------------------
What difference does it make to the dead, the orphans, and the homeless,
whether the mad destruction is brought under the name of totalitarianism or
the holy name of liberty and democracy?
--Gandhi
--------------------------------------------------------------------------
gpg --keyserver keys.indymedia.org --recv-key F65A739E
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://penguin.wplug.org/pipermail/wplug/attachments/20030703/9cca5cca/attachment-0001.bin
More information about the wplug
mailing list