|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Guest
Posts: n/a
|
How can I copy and paste multiple lines in vi?
I am a vi newbie, so please help out a fellow webhamster. ![]() |
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
copy 2 lines: 2yy
paste: p |
|
|
|
|
|
#3 |
|
So Fucking Banned
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
|
setenv EDITOR pico
problem solved. |
|
|
|
|
|
#4 | |
|
Guest
Posts: n/a
|
Quote:
s-wwweeeet, it worked |
|
|
|
|
#5 |
|
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
cut 2 lines: 2dd
|
|
|
|
|
|
#6 | |
|
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
Quote:
|
|
|
|
|
|
|
#7 | |
|
Guest
Posts: n/a
|
Quote:
don't have pico installed. Plus vi is for the kewl guys. |
|
|
|
|
#8 |
|
So Fucking Banned
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
|
I have vi with a passion
|
|
|
|
|
|
#9 | |
|
Guest
Posts: n/a
|
Quote:
of couuuurse. |
|
|
|
|
#10 |
|
Confirmed User
Join Date: Jun 2003
Location: Everywhere at once
Posts: 991
|
up2date emacs
__________________
I have no signature |
|
|
|
|
|
#11 | |
|
Confirmed User
Industry Role:
Join Date: May 2002
Location: Toronto, Canada
Posts: 5,599
|
Quote:
|
|
|
|
|
|
|
#12 |
|
Making PHP work
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,754
|
Oh shit! I feel stupid.
What is vi? |
|
|
|
|
|
#13 |
|
making it rain
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. ![]() |
|
|
|
|
|
#14 | |
|
Guest
Posts: n/a
|
Quote:
Unix text editor. And a pain in the ass, too. |
|
|
|
|
#15 | |
|
Confirmed User
Join Date: Aug 2003
Location: Portland, Oregon
Posts: 4,541
|
Quote:
![]()
__________________
Real. Professional. Hosting. .:Expect Nothing Less:. 320-078-843 :: www.realprohosting.com :: [email protected] |
|
|
|
|
|
|
#16 | |
|
Making PHP work
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,754
|
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? |
|
|
|
|
|
|
#17 |
|
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. |
|
|
|
|
|
#18 |
|
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. |
|
|
|
|
|
#19 |
|
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
__________________
--------------- |
|
|
|
|
|
#20 |
|
Confirmed User
Join Date: Aug 2002
Posts: 5,235
|
|
|
|
|