LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   VI text editor in command line (http://www.linuxquestions.org/questions/linux-software-2/vi-text-editor-in-command-line-71415/)

InSane103 07-09-2003 08:43 PM

VI text editor in command line
 
Ok, how do I save a file using the VI editor at command line level?
I tried ctrl + s, but the file froze, and I had to hit ctrl + alt + F1 to enter a new session and send the halt signal :mad:

Tinkster 07-09-2003 08:45 PM

<esc>
:wq

Try man vi before you run it again ;)

Cheers,
Tink

InSane103 07-09-2003 08:48 PM

Heh, thanks.
I hit esc then type :wq ehy?
Ok.... hope I can get back into my graphical desktop now!

Tinkster 07-09-2003 09:19 PM

<esc> to get from any special mode
(like editing :D) into command mode,
so you can enter :(start a command)
w(write) q(quit) ... what always gets me
is that VI-users say emacs is crytpic ;)
just because it uses DIFFERENT funny
keystrokes ;)

Cheers,
Tink

moses 07-09-2003 10:04 PM

Ctrl-s is a scroll lock key sequence. Ctrl-q will unlock. . .
Unless something tells the OS to pass that ^s, it will always be a scroll lock, and the same for ^q.


All times are GMT -5. The time now is 01:23 PM.