Merge pull request #459 from rafaelbernard/vim-multiple-windows

Add: vim - multiple windows
This commit is contained in:
Chris Allen Lane 2019-07-01 18:51:56 -04:00 committed by GitHub
commit 42a39449b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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