Switch files between left and right or top and bottom panels.

Screenshot from 2013-03-22 10:20:37

Open two files in vim with a vertical split.  The current file is on the left (with red colour cursor).

Screenshot from 2013-03-22 10:20:27

In command mode, press “CTRL+w” then  “L”.  The current file will be move to the right panel.  “CTRL+w” then “H” will move it back to the left panel.

Screenshot from 2013-03-22 10:23:15

In command mode, press “CTRL+w” then  “K”.  The current file will be move to the top panel.

Screenshot from 2013-03-22 10:23:23

In command mode, press “CTRL+w” then  “J”.  The current file will be move to the bottom panel.

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: