Skip to content

Instantly share code, notes, and snippets.

@dave-burke
Last active February 18, 2023 03:57
Show Gist options
  • Save dave-burke/89382f8ca76c5fa688b9 to your computer and use it in GitHub Desktop.
Save dave-burke/89382f8ca76c5fa688b9 to your computer and use it in GitHub Desktop.
A reference for splitting windows in VIM
frame   horizontal up     -->  :topleft     split
frame   horizontal down   -->  :botright    split
frame   vertical   left   -->  :topleft     vsplit
frame   vertical   right  -->  :botright    vsplit
window  horizontal up     -->  :leftabove   split
window  horizontal down   -->  :rightbelow  split
window  vertical   left   -->  :leftabove   vsplit
window  vertical   right  -->  :rightbelow  vsplit

NOTE: In VIM parlance, a "window" is "a viewport on a buffer," so splitting a "window" is splitting just the portion of the screen dedicated to the currently selected file contents. Splitting a "frame," then, is splitting the entire window (in the ordinary sense of the word window).

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment