Vim: 如何将命令行移动到拆分
Vim: how to move the command line to a split
我正在使用 MacVim,试图将 bottom/command 行缓冲区移动到一个拆分。我希望我的代码在左边,命令行在右边。命令行的行为似乎不像常规拆分。这对我很有用,因为我有一个 REPL 插入到 Mvim 中,我想垂直查看输出,并与我的代码并排显示。有什么方法可以将命令行移动到拆分?
命令行和命令行window都不能移动。它们将始终位于底部,横跨整个宽度。
如果您尝试发出 window 移动命令,例如 <C-w>K
,Vim 会抱怨 E11: Invalid in command-line window; <CR> executes, CTRL-C quits
。
接:help E11
,作如下解释:
The command-line window is not a normal window. It is not possible to move to
another window or edit another buffer. All commands that would do this are
disabled in the command-line window. Of course it _is_ possible to execute
any command that you entered in the command-line window. Other text edits are
discarded when closing the window.
我正在使用 MacVim,试图将 bottom/command 行缓冲区移动到一个拆分。我希望我的代码在左边,命令行在右边。命令行的行为似乎不像常规拆分。这对我很有用,因为我有一个 REPL 插入到 Mvim 中,我想垂直查看输出,并与我的代码并排显示。有什么方法可以将命令行移动到拆分?
命令行和命令行window都不能移动。它们将始终位于底部,横跨整个宽度。
如果您尝试发出 window 移动命令,例如 <C-w>K
,Vim 会抱怨 E11: Invalid in command-line window; <CR> executes, CTRL-C quits
。
接:help E11
,作如下解释:
The command-line window is not a normal window. It is not possible to move to
another window or edit another buffer. All commands that would do this are
disabled in the command-line window. Of course it _is_ possible to execute
any command that you entered in the command-line window. Other text edits are
discarded when closing the window.