LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-09-2003, 08:43 PM   #1
InSane103
Member
 
Registered: Jul 2003
Location: Worst place on earth.
Distribution: MDK 10
Posts: 163

Rep: Reputation: 30
Exclamation 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
 
Old 07-09-2003, 08:45 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
<esc>
:wq

Try man vi before you run it again ;)

Cheers,
Tink
 
Old 07-09-2003, 08:48 PM   #3
InSane103
Member
 
Registered: Jul 2003
Location: Worst place on earth.
Distribution: MDK 10
Posts: 163

Original Poster
Rep: Reputation: 30
Heh, thanks.
I hit esc then type :wq ehy?
Ok.... hope I can get back into my graphical desktop now!
 
Old 07-09-2003, 09:19 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
<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
 
Old 07-09-2003, 10:04 PM   #5
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
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.
 
  


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
Enhanced command line text editor netsoft2005 Linux - Software 2 07-14-2005 08:42 AM
Text editor, Pico command not found gigglesnorter Linux - Newbie 2 05-21-2004 04:14 PM
vi editor/command line free guide fhameed Linux - Software 3 12-12-2003 10:16 AM
Mandrake 9.1 installed command line text editor plexi100 Linux - Newbie 1 11-07-2003 11:25 PM
vi as Command Line Editor taz75 Linux - Newbie 8 01-04-2002 02:30 PM


All times are GMT -5. The time now is 04:18 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration