vim: dealing with split screens

Some useful commands for dealing with split screens in vim:

  • :split  – split the screen  (:vsplit splits vertically)
  • ^Ww – go to the other window
  • ^Whjkl – go to the window in the specified direction
  • ^W+ – increase the height of the window (- decreases it), add a count if you like
  • 42^W_ – set the height to 42 lines
  • ^W> – increase the width of the window (< decreases it), add a count if you like
  • :close – close the current window
  • :only – close all other windows
Advertisements

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: