2017年11月17日 星期五

Split windows in Vim


1. Splitting panes

 Ctrl-w n  : split horizontal pane (editing new buffer)

 Ctrl-w s or ":spit" : split horizontal pane (editing current buffer)

 Ctrl-w v or ":vsplit" : split vertical pane (editing current buffer)

2. Closing panes

 Ctrl-w c  or ":q": close pane

 Ctrl-w o  : close all panes, only current pane opened


3. Navigating panes

 Ctrl-w w  : switch to next pane
 Ctrl-w p  : switch to previous pane

 Ctrl-w Up  : switch to up pane
 Ctrl-w Down  : switch to down pane

 Ctrl-w Left  : switch to left pane
 Ctrl-w Right  : switch to right pane


Refer to
  http://codeincomplete.com/posts/split-windows-and-tabs-in-vim/




















沒有留言:

張貼留言