©2018 by Zach Pfeffer

SEARCH THIS SITE

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

A Fix for "You don't have permission to create items on this site: https://yoursite.sharepoint.com/sites/pwa"

September 25, 2019

Create a Tree-View of a Directory on Linux with 'tree'

August 17, 2019

Use draw.io in Google Drive (and Get Rid of draw.io )

June 30, 2019

1/1
Please reload

Tags

Please reload