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 |
Any particular reason *why* you would want to do that?
|
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". |
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. |
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. |