Brad,

I learned vi from O'Reilly's "Learning the vi Editor" that also comes with a pocket 
reference.  I'm not remembering mode names at this point and somebody else has the 
book so:

I use uppercase 'Y' to select a single line or 'nY' to select multiple (n) lines when 
in command(?) mode - not edit, anyway.  Then I scroll to the insert point and press 
lowercase 'p'.

Karjala


>>> [EMAIL PROTECTED] 09/29/2004 4:21:43 PM >>>
The other day, while coding (in Unidata) I was attempting to initialize
a new variable I decided to name DUP.COUNTER.

However, after just typing the letters DUP, I accidentally hit the enter
key and was surprised to see that the previous line above repeated. I
have been exclusively using LOAD to copy or repeat lines of code in a
program until I noticed the dup thing.  What is the best way to copy,
repeat a line or duplicate blocks of code in vi editor?  Is there
documentation somewhere on any editing commands available within vi
editor?



I know there are other editors and am wondering if it would behoove me
to check into some rather than sticking with vi editor.



Thanks for any info!



Brad May

Thiel College, Greenville, PA

###########################################

This message has been scanned by
F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to
http://www.f-secure.com/ 
-------
u2-users mailing list
[EMAIL PROTECTED] 
To unsubscribe please visit http://listserver.u2ug.org/ 
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to