vim多窗口操作

記錄下vim的多窗口操作以免忘記。


Multi-windows in vim

split windows in horizontal:
   :split/:new/:sp     divide windows into two sub-windows
   :10split            the height of new window will be 10
   :split filepath     open filepath in new sub-window
   ctrl+w+s            shortcut for :split

split windows in vertical:
   :vsplit

resize the windows:
   ctrl+w +/-          enlarge/reduce the size of sub-window in vertical
   ctrl+w 10+/-        specify the number of lines(10) to enlarge/reduce the size of sub-window in vertical
   ctrl+w </>          enlarge/reduce the size of sub-window in horizontal
   ctrl+w 10</>        enlarge/reduce the size of sub-window in horizontal

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章