6. Command-line window *cmdline-window* *cmdwin*
In the command-line window the command line can be edited just like editing
text in any window. It is a special kind of window, because you cannot leave
it in a normal way.
{not available when compiled without the |+cmdline_hist| or |+vertsplit|
feature}
OPEN
There are two ways to open the command-line window:
1. From Command-line mode, use the key specified with the 'cedit' option.
The default is CTRL-F when 'compatible' is not set.
2. From Normal mode, use the "q:", "q/" or "q?" command. *q:* *q/* *q?*
This starts editing an Ex command-line ("q:") or search string ("q/" or
"q?"). Note that this is not possible while recording is in progress (the
"q" stops recording then).
Wednesday, March 28, 2007
bash: edit-and-execute-command (C-xC-e)
edit-and-execute-command (C-xC-e)
Invoke an editor on the current command line, and execute the result as shell commands. Bash attempts to invoke $FCEDIT, $EDITOR, and emacs as the editor, in that order.
------------------------
$ set -o vi
M-v (or Esc v)
$ svn check http://foo.net/project/trunk bar (M-v)
---------------clear screen
emacs: C-l
vi: Esc C-l
ubuntu: C-M-l, lock screen
Invoke an editor on the current command line, and execute the result as shell commands. Bash attempts to invoke $FCEDIT, $EDITOR, and emacs as the editor, in that order.
------------------------
$ set -o vi
M-v (or Esc v)
$ svn check http://foo.net/project/trunk bar (M-v)
---------------clear screen
emacs: C-l
vi: Esc C-l
ubuntu: C-M-l, lock screen
Subscribe to:
Posts (Atom)