DEV Community

Cover image for How to Split Screens in vim
Liz Lam
Liz Lam

Posted on

6

How to Split Screens in vim

Have you ever found yourself going through a long file in vim and wishing you could split your screen? Perhaps you want to make some comparison with a chunk at the top of file with something in the middle. With a few keystrokes you can do exactly that.

Split Horizontally

Horizontal Screen Split

To split the screen horizontally:
a.) Hit CTRL + w
b.) and then s.

If you want to navigate between the screen:
a.) Hit CTRL + w
b.) and then w.

To exit out of one of the screen:
a.) Go into command mode (i.e. hit ESC)
b.) and quit as usual: :q.

Split Vertically

Vertical Screen Split

To split the screen vertically, much like splitting horizontally:
a.) Start by hitting CTRL + w
b.) but then hit v (instead of s).

Navigating between the split screens is the same (CTRL + w + w).

Though horizontal splitting works great. I find vertical splitting to be the most useful.

Combine Both

Vertical and Horizontal Screen Splitting

Why choose? It is possible to combine both horizontal and vertical screen splitting as well.

Image of AssemblyAI tool

Transforming Interviews into Publishable Stories with AssemblyAI

Insightview is a modern web application that streamlines the interview workflow for journalists. By leveraging AssemblyAI's LeMUR and Universal-2 technology, it transforms raw interview recordings into structured, actionable content, dramatically reducing the time from recording to publication.

Key Features:
🎥 Audio/video file upload with real-time preview
🗣️ Advanced transcription with speaker identification
⭐ Automatic highlight extraction of key moments
✍️ AI-powered article draft generation
📤 Export interview's subtitles in VTT format

Read full post

Top comments (0)

Sentry workshop image

Sick of your mobile apps crashing?

Let Simon Grimm show you how to fix them without the guesswork. Join the workshop and get to debugging.

Save your spot →

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay