🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #1308

How to quote % in vi/ex ': ' escape

#1308
From: Heinz Herbeck
Date: Thu, 05 Nov 1992 15:47
27 lines
1230 bytes
Sorry if this is in the FAQ or has been discussed here already. I can vaguely
remember having read about this problem before, but I can't find any 
articles about it in my archives (and I can't find the FAQ either).

How can I insert a % into a ':' command in vi, without it being replaced by
the current filename ?
For example, I have a file test.c% in my directory, and want to read it into
the buffer with

:r test.c%

or edit it with

:e test.c%

^V% and ^V^V% don't work.

And, in the same way, how to quote # ?

Any help or hint will be appreciated.

MfG
HH
-- 
- Heinz M. HERBECK       heinz@marvin.tuwien.ac.at       Tel. +43 1 58801-4107 -
- Technical University of Vienna, Austria  //  Institute for Computer Graphics -
- Hardware, n. : The part of a computer system that can be kicked.             -
Technical Details
Message-ID: <heinz.689356033@marvin.tuwien.ac.at>
Path: arc1-ca.pugleaf.net!sparky!uunet!email!marvin.tuwien.ac.at!heinz

Show Full Headers
Complete Article Headers
Newsgroups: comp.editors
Path: arc1-ca.pugleaf.net!sparky!uunet!email!marvin.tuwien.ac.at!heinz
From: heinz@marvin.tuwien.ac.at (Heinz Herbeck)
Subject: How to quote % in vi/ex ': ' escape
Message-ID: <heinz.689356033@marvin.tuwien.ac.at>
Sender: news@email.tuwien.ac.at
Nntp-Posting-Host: marvin.tuwien.ac.at
Organization: Technical University of Vienna
Date: Thu, 5 Nov 1992 15:47:13 GMT
Lines: 27