Add: vim - multiple windows

This commit is contained in:
Rafael Araujo 2019-05-04 20:43:26 -03:00
parent 5487314676
commit 4c12d66546
1 changed files with 15 additions and 0 deletions

View File

@ -63,3 +63,18 @@ d{motion} delete text that {motion} moves over
2dw deletes 2 words
5yy copies 5 lines
42G go to line 42
# Multiple windows
:e filename - edit another file
:split filename - split window and load another file
ctrl-w up arrow - move cursor up a window
ctrl-w ctrl-w - move cursor to another window (cycle)
ctrl-w_ - maximize current window
ctrl-w= - make all equal size
10 ctrl-w+ - increase window size by 10 lines
:vsplit file - vertical split
:sview file - same as split, but readonly
:hide - close current window
:only - keep only this window open
:ls - show current buffers
:b 2 - open buffer #2 in this window