GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   vi question (https://gfy.com/showthread.php?t=218536)

X37375787 01-08-2004 06:04 PM

vi question
 
How can I copy and paste multiple lines in vi?

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

http://www.media-pentagon.de/projekt...ster-klein.gif

swedguy 01-08-2004 06:05 PM

copy 2 lines: 2yy

paste: p

JSA Matt 01-08-2004 06:05 PM

setenv EDITOR pico

problem solved. :)

X37375787 01-08-2004 06:06 PM

Quote:

Originally posted by swedguy
copy 2 lines: 2yy

paste: p


s-wwweeeet, it worked :thumbsup

swedguy 01-08-2004 06:06 PM

cut 2 lines: 2dd

swedguy 01-08-2004 06:07 PM

Quote:

Originally posted by Equinox



s-wwweeeet, it worked :thumbsup

of course :winkwink:

X37375787 01-08-2004 06:08 PM

Quote:

Originally posted by JSA Matt
setenv EDITOR pico

problem solved. :)


don't have pico installed.

Plus vi is for the kewl guys.

JSA Matt 01-08-2004 06:08 PM

I have vi with a passion :)

X37375787 01-08-2004 06:11 PM

Quote:

Originally posted by swedguy
of course :winkwink:

of couuuurse.:winkwink:

TheSaint 01-08-2004 07:40 PM

up2date emacs

notjoe 01-08-2004 07:42 PM

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 ;)

blackmonsters 01-08-2004 07:47 PM

Oh shit! I feel stupid.
What is vi?

fuzebox 01-08-2004 07:48 PM

And all this time I've been doing

y2<down> to copy 2 lines.

:helpme

X37375787 01-08-2004 07:55 PM

Quote:

Originally posted by blackmonsters
Oh shit! I feel stupid.
What is vi?


Unix text editor. And a pain in the ass, too.

com 01-08-2004 07:58 PM

Quote:

Originally posted by Equinox



Unix text editor. And a pain in the ass, too.

it's a UNIX powertool... learn it, love it.



http://www.tegatai.com/~com/gfy/cat-powered.gif

blackmonsters 01-08-2004 09:11 PM

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?

Rorschach 01-08-2004 09:26 PM

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.

TDJ 01-08-2004 09:56 PM

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.

hibbidiji 01-08-2004 10:42 PM

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

sumphatpimp 01-08-2004 10:57 PM

vi commands


All times are GMT -7. The time now is 02:02 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123