Skip to content

Instantly share code, notes, and snippets.

@debaraj-barua
Last active August 13, 2020 11:57
Show Gist options
  • Save debaraj-barua/ad7cc154549ad23f2e13821b255ea742 to your computer and use it in GitHub Desktop.
Save debaraj-barua/ad7cc154549ad23f2e13821b255ea742 to your computer and use it in GitHub Desktop.
VIM cheat sheet
  • Move split to new tab: <C-W>T
  • Resize splits:
    • Decrease/Increase width: <C-w> 5 </<C-w> 5 > or :vertical resize -5/:vertical resize +5
    • Decrease/Increase height: <C-w> 5 -/<C-w> 5 + or :resize -5/:resize +5
    • Resize all windows to equal dimensions based on their splits, you can use <C-w> =
    • Increase a window to its maximum height, use <C-w> _.
    • Increase a window to its maximum height, use <C-w> |.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment