• Zach Pfeffer

Practice Splitting a Window Horizontally and Vertically, Moving Between the Windows and Closing Them


This post allows you to practice splitting a window horizontally and vertically, moving between the windows and closing the windows.

TL;DR

Steps

1. Run Vim

You'll see:

2. Split the screen horizontally by typing:

You'll see the following. The cursor will be where the yellow arrow points.

Note: the cursor is in the upper window

3. Split the screen vertically by typing:

You'll see the following. The cursor will be where the yellow arrow points.

Note: the cursor is in the upper left window

4. Move right by typing:

You'll see the following. The cursor will be where the yellow arrow points.

5. Move down by typing:

You'll see the following. The cursor will be where the yellow arrow points.

6. Move up by typing:

You'll see the following. The cursor will be where the yellow arrow points.

7. Close the window by typing:

You'll see the following. The cursor will be where the yellow arrow points.

8. Close the other window by typing:

You'll see the following. The cursor will be where the yellow arrow points.

9. Quit Vim by typing:

Alternative Split Commands*

Horizontal Split Vertical Split

Reference

  • *Thanks alfunx and others that replied to my reddit post for the alternative split commands

  • Used Windows Vim

  • The Vim logo is from link

Our Recent Posts

Tags

SEARCH THIS SITE

©2020 by Zach Pfeffer