LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Leave vi mode without pressing enter ? (https://www.linuxquestions.org/questions/linux-general-1/leave-vi-mode-without-pressing-enter-581613/)

Vilius 09-02-2007 04:21 AM

Leave vi mode without pressing enter ?
 
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

unSpawn 09-02-2007 04:38 AM

Any particular reason *why* you would want to do that?

jlliagre 09-02-2007 08:46 AM

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".

Solmoeban 11-12-2007 07:44 PM

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.

nx5000 11-13-2007 04:12 AM

Esc
ZZ

with one hand :)

Will put you out of a saved document


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