回答:
これは実際には、やや「隠された」非自明な方法で文書化されています。 :help Ex-mode
Q Switch to "Ex" mode. This is a bit like typing ":"
commands one after another, except:
- You don't have to keep pressing ":".
- The screen doesn't get updated after each command.
- There is no normal command-line editing.
- Mappings and abbreviations are not used.
In fact, you are editing the lines with the "standard"
line-input editing commands (<Del> or <BS> to erase,
CTRL-U to kill the whole line).
Vim will enter this mode by default if it's invoked as
"ex" on the command-line.
Use the ":vi" command :visual to exit "Ex" mode.
Note: In older versions of Vim "Q" formatted text,
that is now done with gq. But if you use the
vimrc_example.vim script "Q" works like "gq".
gQ
gQ Switch to "Ex" mode like with "Q", but really behave
like typing ":" commands after another. All command
line editing, completion etc. is available.
Use the ":vi" command :visual to exit "Ex" mode.
{not in Vi}
最初の段落(Q
)はexモード(-e
)を説明し、2番目の段落は改善されたexモード(-E
)を説明しています。
exモード(-e
)では、VimはExを可能な限り「エミュレート」しようとしますが、Vimの多くの改善(マッピング、ユーザー定義関数、行編集など)は機能しません。
exモード(-E
)の改善により、Vimは「 ":"コマンドを次々に入力するように実際に動作します」。