[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VIM Question
On Sat, 2004-04-03 at 17:42, Steven Pritchard wrote:
> > On Sat, Apr 03, 2004 at 05:44:31PM -0600, Harold Crouch wrote:
> > Let's say that I am using VIM to edit a text file and I want to
> > replace mulitple occurrances of "fred" with "wilma." What's the
> > easiest way to do this?
>
> :%s/fred/wilma/g
> (That will replace them all.)
OK. Extra credit time here... I have several ostensibly text documents
that, when opened with vim, are littered with blue <92> sequences where
single quote (apostrophe) characters should be. (There are others
besides <92>, but if I can fix one I can fix them all.) I'll assume that
92 is the ASCII decimal code for the single quote character.
How does one designate a compound representation for a single character,
such as vim's <92>, a find & replace statement? Hint: specifying the
target as \<92\> does not work.
--Doc
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.