The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

VI question.. by BlurOfSerenity2003-02-09 11:00:50
  VI answer... by Imperito2003-02-09 11:03:49
    Another answer quick keystrokes by inittab 2003-02-09 13:14:31
First, a reminder: the text in a cut/paste buffer is discarded
as soon as you perform ANY other changes to the file/buffer...
So DON'T make any "slight adjustments", like adding a blank line,
before re-pastnig the text.

You can chose to cut/paste, or copy/paste as shown above.
CUT/PASTE:
  • position cursor in first line you want to move.
  • 8dd      to delete eight lines, into buffer, change number as desired
  • position curson on line directly above destination point
  • p      to paste text below current line
  • you can also use other methods to 'cut' text, such as
    d/foobar      which would delete all lines, to the one with "foobar"
or COPY PASTE:
  • position cursor in first line you want to move.
  • 8y      to 'Yank' eight lines, into buffer, change number as desired
  • position curson on line directly above destination point
  • p       to paste text below current line
  • y/foobar      also works to YANK all text to searched string
this second method leaves the original text in place, which can
be safer - until you are more familiar with 'vi'
[ Reply ]
      minor correction by leibold2003-02-09 13:20:18
        Yup it's true- shift strikes agan..+VIRUS Question by inittab2003-02-09 16:10:23
          Maybe you're pressing the "Fn" key? (n/t) by mhiper32003-02-09 17:32:44
            still skips "I" or "K" even when typed one finger by inittab2003-02-10 04:56:55

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)