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

April 3, 2018

 

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

 

Please reload

Our Recent Posts

List of DOE SciDAC HPC Projects

August 12, 2020

LinkedIn Price and Feature Comparison

July 23, 2020

Columnize a List of Fields Using Excel 2016 on Windows 7

July 6, 2020

1/1
Please reload

Tags

Please reload

SEARCH THIS SITE

©2020 by Zach Pfeffer