LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 09-02-2007, 05:21 AM   #1
Vilius
Member
 
Registered: Jan 2006
Posts: 101
Thanked: 0
Leave vi mode without pressing enter ?


[Log in to get rid of this advertisement]
Hi,
I found vi mode useful fom me(I used 'set -o vi'), but I want to leave it without pressing enter key(entering current command). How do I do that ?

thanks
Vilius
Vilius is offline  
Tag This Post
Reply With Quote
Old 09-02-2007, 05:38 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 16,716
Blog Entries: 30
Thanked: 283
Any particular reason *why* you would want to do that?
unSpawn is offline     Reply With Quote
Old 09-02-2007, 09:46 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris, under a rock ...
Distribution: Solaris & OpenSolaris based distros, Ubuntu
Posts: 8,133
Thanked: 86
If you want to leave the insert mode, just press the "escape" key, like with the vi editor.

If you want to abort the current command edition, the simpler way is to press "Control-C".

Last edited by jlliagre; 09-02-2007 at 09:47 AM..
jlliagre is online now     Reply With Quote
Old 11-12-2007, 08:44 PM   #4
Solmoeban
LQ Newbie
 
Registered: Nov 2007
Posts: 11
Thanked: 0
Escaping command line in linux terminal

12/11/07 20:20p
I have Ubuntu fawn(7.04) command lines in bash are by default in emacs mode
( use 'set -o emacs') to go to start of the command line use Ctrl-a
to the end Ctrl-e. To escape the command line without executing
use Ctrl-c in 'emacs' as well as in 'vi' additionally
Ctrl-x Ctrl-c also exits command(it's normal exit from emacs editor
don't forget save buffer Ctrl-x Ctrl-s.)

Cheers,

Solmoeban.

Last edited by Solmoeban; 11-12-2007 at 09:12 PM..
Solmoeban is offline  
Tag This Post ,
Reply With Quote
Old 11-13-2007, 05:12 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,313
Thanked: 3
Esc
ZZ

with one hand

Will put you out of a saved document
nx5000 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
How to enter execute mode..? amit_linux Linux - Software 2 05-31-2007 04:19 AM
Mandrake 10 doesnt install after pressing enter subliminal Mandriva 9 06-17-2004 04:04 PM
can no enter rescue mode entirely pandachina Linux - Software 0 09-07-2003 08:56 PM
Howto leave vncviewer -fullscreen mode Consystor Linux - Software 2 07-20-2003 09:04 AM
I did the following program and get blank line after pressing <ENTER> purpleburple Programming 5 08-21-2002 01:00 PM


All times are GMT -5. The time now is 05:45 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration