Vi/Vim Substitution For Microsoft Word Characters

Bryan Breen Bryan.C.Breen.1 at
Mon Oct 28 19:47:11 PST 2002

At 22:17 10/28/02 +0000, Mark Hymers wrote:
>On Mon, 28, Oct, 2002 at 10:12:54PM -0500, Bryan Breen spoke thus..
>> So I want to make a simple search and replace line for vi[m]. I have tried
>> some of the following, with no success:
>> %s/\306/'/gc
>> %s/\\306/'/gc
>> %s/^\306/'/gc
>> (That last one, the ^ was made with a CTRL-V press, followed by a CTRL-\,
>> thinking maybe it was looking for an ASCII escape sequence... grasping for
>> anything at that point).
>Have you considered piping it through tr?  man tr should help.

Sweeeeeeeeet... That was exactly what I was looking for. Thanks Mark.

Unsubscribe: send email to listar at
and put 'unsubscribe lfs-chat' in the subject header of the message

More information about the lfs-chat mailing list