Sweet! Thanks, Jason. -----Original Message----- From: Jason Louie [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 12:03 To: [EMAIL PROTECTED] Subject: Re: (clug-talk) [support] vi Copy & Paste - is this the way to do it?
yw = Yank word #yw = Yank # of words y$ = Yank till end of line Jason Curtis Sloan wrote: >Are there similar methods for yanking just a word or portions of a line? > >Thanks, >Curtis. > >-----Original Message----- >From: Jason Louie [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 17, 2003 11:41 >To: [EMAIL PROTECTED] >Subject: Re: (clug-talk) [support] vi Copy & Paste - is this the way to >do it? > > >Sure this is one way of doing it. Another is >1. goto the top of the section you want to copy >2. copy the number of line you want copied (where # is the number of >lines) >> #yy >3. goto the place you want to copy it too and paste >> p > > There are a number of ways to do things like this. The one above is >a quick way of doing it without remembering which buffer you keep things >in but the way you posted has multiple buffers to copy and paste with. >I'm sure that are other ways but I think these two are the more common ones. > >Jason > > >Curtis Sloan wrote: > > > >>I found a quick cheat sheet for vi here: >> >>http://www.cs.ucsd.edu/classes/fa97/cse9a/vi.html >> >>On that page it says this about copy and pasting: >> >>MARK BEGINNING OF BLOCK "a" ma >>COPY BLOCK FROM MARKER "a" TO CURSOR "ay'a >>PASTE BLOCK "a" "ap >>Is this the correct/best way to copy and paste in vi? (Sorry, Jason Louie, >>I can't get at my notes from your prezzy right now.) :-P I'm wondering >>since it didn't work in PocketViC for the Pocket PC. >>If there are any other ways to perform the same operation, please reply. >>Maybe one will work where another doesn't on this implementation. >> >>Thanks, >>Curtis. >> >> >> >>
