Article View: comp.editors
Article #2785VI tags and tips
From: Stan Jaffe
Date: Mon, 10 Jun 1991 19:58
Date: Mon, 10 Jun 1991 19:58
37 lines
1780 bytes
1780 bytes
Hi,
I have two questions for the group.
1. Another poster mentioned a collection of vi tips. Could someone
send this to me if it exists.
2. I would like to be able to move the cursor to a label and have vi
then search for other occurances of that label. So far I have:
lbi/^V^["sd2euw@s^M
which DOES work. However, it "modifies" the file as far as the
modified file flag is concerned. I then have to use e! rather than
than e to get the next file. This in itself isn't really a problem,
but I always wonder whether I REALLY DID modify the file intentionally
and forgot what I did, or just did a search.
A similar feature I just discovered is the use of a tags file. This
is really great for firmware development where source code is
distributed over many source files. However, I'm using a rather
arcane language similar to ALGOL so had to write my own ctags program
to generate the tags file. To me tags is the greatest thing since
sliced bread: it's incredibly fast and I don't have to continually
consult my linker map to find where various procedures are located.
Any tags tips?
Thanks for the help,
Stan Jaffe A.K.A. stanj@sr.hp.com
HP Santa Rosa, Calif.
"Not responsible for any opinions but my own"
------------------------------------------------------------------
Technical Details
Message-ID:
<8000002@hpnmdla.sr.hp.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!hplabs!hpl-opus!hpnmdla!stanjShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!hplabs!hpl-opus!hpnmdla!stanj From: stanj@hpnmdla.sr.hp.com (Stan Jaffe) Newsgroups: comp.editors Subject: VI tags and tips Message-ID: <8000002@hpnmdla.sr.hp.com> Date: 10 Jun 91 19:58:25 GMT Organization: HP Network Measurements Div, Santa Rosa, CA Lines: 37