LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   where to save in VI (https://www.linuxquestions.org/questions/linux-software-2/where-to-save-in-vi-72752/)

DTre08 07-14-2003 07:50 PM

where to save in VI
 
Hi

I'm trying to save my "/etc/fstab" file in VI, and i don't know where to type the "save and exit" command. I can't see anyplace to do this in the command mode. What's the secret?:confused:

AltF4 07-14-2003 07:57 PM

the ":" character switches to command mode

(if it doesn't work press "ESC" and then ":" )

use ":set showmode" to get a visual feedback for your current mode

Electro 07-14-2003 09:10 PM

You can not write to that file. Only root or su can. To write in vi you type :w . Hit ESC to get out of editing mode.

jlangelier 07-15-2003 01:17 AM

Check out gvim. It's vi, but MUCH better... it's probably already installed. It has icon button and menu pull-down capabilities.


All times are GMT -5. The time now is 04:16 PM.