Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-08-2004, 06:04 PM   #1
X37375787
Guest
 
Posts: n/a
vi question

How can I copy and paste multiple lines in vi?

I am a vi newbie, so please help out a fellow webhamster.

  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 06:05 PM   #2
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
copy 2 lines: 2yy

paste: p
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 06:05 PM   #3
JSA Matt
So Fucking Banned
 
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
setenv EDITOR pico

problem solved.
JSA Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 06:06 PM   #4
X37375787
Guest
 
Posts: n/a
Quote:
Originally posted by swedguy
copy 2 lines: 2yy

paste: p

s-wwweeeet, it worked
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 06:06 PM   #5
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
cut 2 lines: 2dd
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 06:07 PM   #6
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
Quote:
Originally posted by Equinox



s-wwweeeet, it worked
of course
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 06:08 PM   #7
X37375787
Guest
 
Posts: n/a
Quote:
Originally posted by JSA Matt
setenv EDITOR pico

problem solved.

don't have pico installed.

Plus vi is for the kewl guys.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 06:08 PM   #8
JSA Matt
So Fucking Banned
 
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
I have vi with a passion
JSA Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 06:11 PM   #9
X37375787
Guest
 
Posts: n/a
Quote:
Originally posted by swedguy
of course

of couuuurse.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 07:40 PM   #10
TheSaint
Confirmed User
 
Join Date: Jun 2003
Location: Everywhere at once
Posts: 991
up2date emacs
__________________
I have no signature
TheSaint is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 07:42 PM   #11
notjoe
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto, Canada
Posts: 5,599
Quote:
Originally posted by Equinox



don't have pico installed.

Plus vi is for the kewl guys.
vi is for people who have time to learn 20,000 key stokes to open/edit/save a file ;)
notjoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 07:47 PM   #12
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,754
Oh shit! I feel stupid.
What is vi?
blackmonsters is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 07:48 PM   #13
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,167
And all this time I've been doing

y2<down> to copy 2 lines.

fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 07:55 PM   #14
X37375787
Guest
 
Posts: n/a
Quote:
Originally posted by blackmonsters
Oh shit! I feel stupid.
What is vi?

Unix text editor. And a pain in the ass, too.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 07:58 PM   #15
com
Confirmed User
 
Join Date: Aug 2003
Location: Portland, Oregon
Posts: 4,541
Quote:
Originally posted by Equinox



Unix text editor. And a pain in the ass, too.
it's a UNIX powertool... learn it, love it.



__________________

Real. Professional. Hosting.
.:Expect Nothing Less:.
320-078-843 :: www.realprohosting.com :: [email protected]
com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 09:11 PM   #16
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,754
Quote:
Originally posted by Equinox



Unix text editor. And a pain in the ass, too.
Why on earth would I need that?
I just create a ".txt" file on my PC and do what ever I want and upload it to the server.

Sorry I don't get it?
blackmonsters is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 09:26 PM   #17
Rorschach
So Fucking Banned
 
Join Date: Aug 2002
Posts: 5,579
Well for editing text files on a server, or for creating text files without windows new lines. If you're cruising around in the shell on your server and you want to edit a file, you'd use vim rather than downloading and uploading the whole thing. You can also launch vi from inside other programs (eg. less).

Also some people run * nix on the desktop and/or prefer to code with vi/vim, you can really be very productive once you get used to it.
Rorschach is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 09:56 PM   #18
TDJ
Confirmed User
 
Join Date: Nov 2003
Location: Ontario, CA
Posts: 146
vim rocks. once you get used to it, it's a hell of a better way to code than say... notepad. Very powerful.

on the flip side.. emacs is pretty good too for all sorts of stuff.
TDJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 10:42 PM   #19
hibbidiji
Confirmed User
 
Join Date: Sep 2002
Location: Las Vegas
Posts: 208
I bet I'm the only one here to use EE huh? and thats probably making me look reeeaaal bad... hehe I used to use pico, then did NANO (pico on pretty weak steroids) I only use vi to edit system files, not for coding etc.
D
__________________
---------------
hibbidiji is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-08-2004, 10:57 PM   #20
sumphatpimp
Confirmed User
 
Join Date: Aug 2002
Posts: 5,235
vi commands
sumphatpimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.