Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with VI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
scott8711
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2002
Posts: 145

PostPosted: Fri Oct 25, 2002 12:52 am    Post subject: Problem with VI Reply with quote

I am trying to create my resolv.conf file. I can enter VI alright and enter the text for my nameserver and DNS addresses. However when I press ESC to escape from input mode the screen blinks and nothing happens. If I press W to write the file I get the same reeesult and if I press Q to quit I get an error messae saying that Q is not a Vi command. Can anyone tell me what am dong wrong.

thanks
Scott
scott.beatty@pangeatech.com

P.S. I am very anxious to get the system going so a quick response would be greatly appreciated. thanks
Back to top
View user's profile Send private message
_SkeLeToN_
Guru
Guru


Joined: 12 Sep 2002
Posts: 506
Location: Montreal,Canada

PostPosted: Fri Oct 25, 2002 1:03 am    Post subject: Reply with quote

You need after you press ESC do this

:wq = write and quit
:w = write only
:q! = quit without changing anything.

dont forget the :
Back to top
View user's profile Send private message
dubiousoul
n00b
n00b


Joined: 12 Sep 2002
Posts: 17
Location: Tucson, AZ

PostPosted: Fri Oct 25, 2002 1:04 am    Post subject: Reply with quote

Sounds like your caps lock is on.
Back to top
View user's profile Send private message
n0n
Guru
Guru


Joined: 13 Jun 2002
Posts: 355

PostPosted: Fri Oct 25, 2002 8:34 pm    Post subject: Reply with quote

If you're unfamiliar with vi syntax and need to edit files quickly, you'd probably be better off going with something a bit more user-friendly, like "nano." When you've got some more time on your hands, I'd make sure you've emerged "vim" and then run "vimtutor." That'll guide you through the fundamentals of using vi rather well.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum