在zsh
in 中vim mode
,我写了一些东西
foo foo bar bar
Run Code Online (Sandbox Code Playgroud)
然后我点击Esc进入正常模式并输入 :
foo foo bar bar
execute: _
Run Code Online (Sandbox Code Playgroud)
然后,我假设我可以做到这一点,我想搜索并替换bar
为baz
foo foo bar bar
execute: s/bar/baz/g_
Run Code Online (Sandbox Code Playgroud)
然后我尝试按 Enter 键,但这不起作用。我只能从execute
使用Ctrl+ 返回c。
如何执行命令?
我用我的正常人试过这个,根本.zshrc
没有.zshrc
。
mur*_*uru 12
该vicmd
模式下,尽管名称,是六世的普通模式命令。开始的提示:
不是用于 Vi 的 ex-mode 命令,而是用于运行ZLE(Zsh 的行编辑器)命令:
$ echo foo
execute: e_
edit-command-line emacs-forward-word end-of-history end-of-line-hist exchange-point-and-mark execute-named-cmd expand-history expand-or-complete-prefix
emacs-backward-word end-of-buffer-or-history end-of-line end-of-list execute-last-named-cmd expand-cmd-path expand-or-complete expand-word
Run Code Online (Sandbox Code Playgroud)
Enter当输入了唯一的前缀时,按将起作用(即,假设您键入ed
,匹配edit-command-line
,然后Enter将起作用)。您可以按Tab查看匹配的命令。