我正在使用vim編輯器,並使用vsplit
分割窗口。我有3個垂直拆分窗口A
B
C
訂單。是否有可能洗窗戶B
A
C
命令?左右移動或移動虛擬窗口
1
A
回答
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"
相關問題
- 1. 左右移動UIButton
- 2. android-webview左右移動/平移/滾動
- 3. 向左或向右移動從MATLAB
- 4. 處理UITableCell向左移動(或向右移動)事件?
- 5. Fancybox拖動窗口左右
- 6. 鈦:左/右滑動窗口
- 7. 左右移動字符
- 8. 點擊後左右移動?
- 9. 在UIScrollView中左右移動
- 10. UITableViewCell內容左右移動
- 11. Intellij:左右移動標籤
- 12. 左右連續移動div
- 13. 將SVG組左右移動
- 14. 左右移動剛體
- 15. 圖像在窗口縮放時左右移動
- 16. Android碎片拖動或移動從左到右或從右到左
- 17. 將窗口移動到左上角
- 18. 在工作區/虛擬桌面之間移動窗口
- 19. 調整窗口大小時,div內的文字向右或向左移動
- 20. 虛擬機自動遷移
- 21. UIViewController忽略左/右滑動移動
- 22. 動畫移動到左側和右側?
- 23. ios增長動畫CGAffineTransformMakeScale左右移動
- 24. 的ListView左右移動,同時滾動
- 25. VBScript移動窗口
- 26. 在移動窗口
- 27. UIView窗口移動
- 28. 滾動條向右移動而不是向左移動
- 29. 窗口移動動畫
- 30. jQuery動畫移動窗口