Vim:如何将命令行移动到分割位置

问题描述:

我正在使用MacVim,尝试将底部/命令行缓冲区移动到分割位置。我想让我的代码在左边,命令行在右边。命令行似乎不像常规分割。这对我来说很有用,因为我有一个REPL插入到Mvim中,我希望垂直地看到输出,并与我的代码并行。任何方式将命令行移动到分割?Vim:如何将命令行移动到分割位置

+0

不,这是不可能的。但是在Google上几分钟会给你许多基于屏幕/基于tmux的解决方案,甚至还有一些纯粹的基于Vim的解决方案。 – romainl

命令行和命令行窗口都不能移动。它们将始终位于底部,横跨整个宽度。

如果您尝试发出类似<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.