Created
April 2, 2015 04:13
-
-
Save milesrout/fc5dcddbaa71cef60098 to your computer and use it in GitHub Desktop.
vim splits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I: location of cursor | |
initial state | |
+-------+-------+ | |
| | | | |
+-------+ | | |
| I | | | |
+-------+ | | |
| | | | |
+-------+-------+ | |
:topleft vsplit :leftabove vsplit :vsplit | |
+-----+-----+-----+ +-----------+-----+ +-----------+-----+ | |
| | | | | | | | | | | |
| +-----+ | +-----+-----+ | +-----+-----| | | |
| I | | | | | I | | | | I | | | |
| +-----+ | +-----+-----+ | +-----+-----| | | |
| | | | | | | | | | | |
+-----+-----+-----+ +-----------+-----+ +-----------+-----+ | |
window horizontal up --> :topleft split | |
window horizontal down --> :botright split | |
window vertical left --> :topleft vsplit | |
window vertical right --> :botright vsplit | |
buffer horizontal up --> :leftabove split | |
buffer horizontal down --> :rightbelow split | |
buffer vertical left --> :leftabove vsplit | |
buffer vertical right --> :rightbelow vsplit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment