ならない理由:一般/パターンvimで作業中

ならない理由:一般/パターンvimで作業中

私はこの4行を持っています:

the lazy cow jumped over the high moon
the hazy cow jumped over the high moon
the noble cow jumped over the high moon
the crazy cow jumped over the high moon

:normal dd期待どおりに動作しています。

なぜ何も強調表示されないのですか:normal /over<CR>

このような基本的な質問をして申し訳ありません。

ベストアンサー1

~から:h :normal:

{commands} should be a complete command.  If
{commands} does not finish a command, the last one
will be aborted as if <Esc> or <C-C> was typed.

aを完了するには、/patternを押す必要がありますEnter。しかし、 を押すとEnter実際に:normalコマンドが完了するので、/patternまだ不完全です。

Enter+を使用してコマンドの一部として含めることができます。CtrlVEnter

:normal /over^M

VimはCtrlV+Enterをマークします^M。バラより:h c_CTRL-V

おすすめ記事