我正在使用MacVim,尝试将底部/命令行缓冲区移动到拆分。我想让我的代码在左边,命令行在右边。命令行似乎不像常规拆分。这对我有用,因为我有一个插入Mvim的REPL,我希望垂直地看到输出,与我的代码并排。有没有办法将命令行移动到拆分?
答案 0 :(得分:2)
命令行和命令行窗口都不能移动。它们总是位于底部,横跨整个宽度。
如果您尝试发出<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.