![]() |
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 |
copy 2 lines: 2yy
paste: p |
setenv EDITOR pico
problem solved. :) |
Quote:
s-wwweeeet, it worked :thumbsup |
cut 2 lines: 2dd
|
Quote:
|
Quote:
don't have pico installed. Plus vi is for the kewl guys. |
I have vi with a passion :)
|
Quote:
of couuuurse.:winkwink: |
up2date emacs
|
Quote:
|
Oh shit! I feel stupid.
What is vi? |
And all this time I've been doing
y2<down> to copy 2 lines. :helpme |
Quote:
Unix text editor. And a pain in the ass, too. |
Quote:
http://www.tegatai.com/~com/gfy/cat-powered.gif |
Quote:
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? |
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. |
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. |
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 |
|
| 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