[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VIM Question
I don't know the answer to your vim question, but 92 isn't accii decimal for '
perl -we 'print ord q/'/'
39
perl -we 'print chr 92'
\
Sorry if I am no help
Tim Hart
-----Original Message-----
From: dsavage@peaknet.net
Sent: Apr 3, 2004 6:56 PM
To: silug-discuss@silug.org
Subject: 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.
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.