[comp.editors] VI tags and tips

stanj@hpnmdla.sr.hp.com (Stan Jaffe) (06/11/91)

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"
------------------------------------------------------------------