2013-08-19 27 views

回答

4

使用<ctrl-w> + H當前選定的窗口移動到最左邊(大寫H)

所以,如果你的光標在窗格b。您可以做<c-w>H以將B左,將取代其位置在中間

查看:h window-moving瞭解移動窗口的其他選項。

5. Moving windows around        window-moving 


CTRL-W x          CTRL-W_x CTRL-W_CTRL-X 
CTRL-W CTRL-X Without count: Exchange current window with next one. If there 
       is no next window, exchange with previous window. 
       With count: Exchange current window with Nth window (first 
       window is 1). The cursor is put in the other window. 
       When vertical and horizontal window splits are mixed, the 
       exchange is only done in the row or column of windows that the 
       current window is in. 

... 

               CTRL-W_H 
CTRL-W H  Move the current window to be at the far left, using the 
       full height of the screen. This works like closing the 
       current window and then creating another one with 
       ":vert topleft split", except that the current window contents 
       is used for the new window. 
       {not available when compiled without the +vertsplit feature} 
3
,如果你想實現 ABC->BAC,光標B中

,做@Fdinoff建議,如果光標A,<c-w> +x交流與下一個當前窗口。

就我個人而言,當我打開兩個窗戶並且想要交換位置時,​​我經常使用它。

<c-w> H對於將H-split兩個窗口切換到V-split也很有用。

0

有趣的問題。如果我真的希望有vim洗窗戶,我 會這樣做:

au VimEnter * exe (localtime()%winnr('$')+1). "wincmd R|1wincmd w"