<ctrl> + w + w
对我有用。
如果你使用 :sp
或者 :vsp
命令来切割窗格,<ctrl> + w + w
可以让你在它们之间进行导航。
看起来你已经采取了与以下类似的行动
vim <some-file>
:vs <some-other-file>
<C-w> l // to get to the right window
:term // to open up a terminal session within right right window
<C-w> j // to move to the bottom right window (a normal vim window)
:q
vim <file> // within the terminal inside the right vim window
:sp <file> // split that window
现在看起来好像你有三个vim窗口,但实际上你有四个:
这是一个非常危险的位置,因为无论你在左边还是右边的外部会话中,外部的buffer(如果我用错了请纠正我)总会以某种原因捕获<C-w>
控制字符。
您可以通过查看按下<C-w>
时屏幕上的显示位置来查看此情况。如果我正确复制了您的环境,则它显示在底部右侧buffer的右窗口下方。
作为解决方法,您需要使用以下内容而不是使用<C-w>
来进行窗口导航:
:winc j
要导航到右下窗口。