image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old August 21st, 2004, 10:39 PM
Registered User
 
Join Date: Sep 2001
Location: Houston, TX
Posts: 368
Thanks: 0
Thanked 0 Times in 0 Posts
fuzz is on a distinguished road
terminal help

I was trying to set up a webdav server on my powerbook and it's been a long time since i've done unix type stuff.

i typed:

sudo vim /etc/httpd/httpd.conf

and i want to get out ...I know that ctrl-z suspends but how do I exit without saving what i've done?

btw, where can i find a reference on how to use vi or vim or emacs?

thanks
__________________
I'm bicycling 183 miles on April 21-22, 2007 from Houston to Austin to support multiple sclerosis treatment. Please support my MS150 ride! Thank you!
Reply With Quote
  #2  
Old August 21st, 2004, 11:22 PM
g/re/p's Avatar
I can haz cigar?
 
Join Date: Mar 2003
Location: sitting on a cornflake, waiting for the van to come
Posts: 1,217
Thanks: 3
Thanked 4 Times in 4 Posts
g/re/p is on a distinguished road
error ... please delete this entry
__________________
find / -name 'nancy pelosi' -exec rm {} ;

rm -rf /System/Library/StartupItems/"${1}"


stockholm syndrome

Last edited by g/re/p; August 22nd, 2004 at 06:38 PM.
Reply With Quote
  #3  
Old August 22nd, 2004, 06:33 PM
g/re/p's Avatar
I can haz cigar?
 
Join Date: Mar 2003
Location: sitting on a cornflake, waiting for the van to come
Posts: 1,217
Thanks: 3
Thanked 4 Times in 4 Posts
g/re/p is on a distinguished road
press the shift and : keys, then type qa! at the :
and it will quit without making any changes to the file.

~
~
~
~
~
~
~
~
~
~
~
~
~
~
:qa!

now type man vim to veiw the man pages for vim
__________________
find / -name 'nancy pelosi' -exec rm {} ;

rm -rf /System/Library/StartupItems/"${1}"


stockholm syndrome

Last edited by g/re/p; August 22nd, 2004 at 06:41 PM.
Reply With Quote
  #4  
Old August 22nd, 2004, 08:39 PM
Registered User
 
Join Date: Sep 2001
Location: Houston, TX
Posts: 368
Thanks: 0
Thanked 0 Times in 0 Posts
fuzz is on a distinguished road
thanks! i got a webdav server working on my powerbook! so i can publish my iCal. I don't have a static IP so it only works for the local network which is fine. My intent is to set up the webdav so that I can use the Workgroup feature in Adobe Illustrator.

i feel like i've driven from work to home blindfolded (b/c i'm not much of a command line person) ... what a sensation haha ... hey maybe i can drive a few more miles to the grocery store.
__________________
I'm bicycling 183 miles on April 21-22, 2007 from Houston to Austin to support multiple sclerosis treatment. Please support my MS150 ride! Thank you!
Reply With Quote
  #5  
Old August 24th, 2004, 12:18 PM
hazmat's Avatar
Rusher of Din
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 1,803
Thanks: 0
Thanked 0 Times in 0 Posts
hazmat is on a distinguished road
vim also has online help, so something like:

:help exit
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 10:17 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.