LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2003, 04:34 AM   #1
andym
Member
 
Registered: Apr 2003
Location: UK
Posts: 52

Rep: Reputation: 15
I need Vi editing help


hi i need to edit my xf86config file (by the way this is REDHAT 9 i am using) as my resolution has gone a bit wrong and i can't see anything on the screen as the res is too large (see an earlier post in software) i have been told to use vim. (or Vi or whatever its called) so i tried by typing:

vim etc/X11/xf86config

this loads vim, but the edit window is empty

can someone please tell me (in complete idiot language):

how to load xf86config in Vim
how to edit it
how to save it
how to get out of Vim to reboot

thankyou eternally if you can help
 
Old 04-16-2003, 04:58 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
I think you'll find that xf86config should be XF86Config

As for using Vi have a look at http://www.tldp.org/HOWTO/Vim-HOWTO-11.html

HTH

Jamie...
 
Old 04-16-2003, 04:59 AM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Cross posted with http://www.linuxquestions.org/questi...threadid=55274
 
Old 04-16-2003, 02:38 PM   #4
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
it loads an empty file because you're creating a NEW file called xf86config, instead of loading the existing XF86Config -- Linux is case sensitive, the files are different.

check the howto or man page for all the commands - there are a lot. there are two modes, write and command, you start off in command. type i to insert text, then hit ESC to get back to command mode. :q to quit, ZZ to save and quit.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing fstab GingerMegs Linux - Software 1 06-04-2005 05:24 PM
Editing the K-MENU Kamikazee MEPIS 1 05-30-2005 02:56 AM
DV editing with mandrake BlendedRacer LinuxQuestions.org Member Success Stories 0 10-31-2004 05:56 PM
Help editing xf86config HiImNew Linux - Newbie 6 12-06-2003 09:42 PM
Fstab editing Ando Linux - General 4 06-29-2003 06:17 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration