Splits

Last update in 11/2019

Every day while implementing new features or fixing bugs you reference other files. And working with only one file opened at the same time isn't fun. That is where Vim splits come in. They allow you to view and edit multiple files side by side.

This is cheatsheet of useful shortcuts that you can use to navigate, create and manipulation splits.

Create #

Also, you can close split with :q same as Vim.

Manipulation #

You've maybe noticed that new splits appear on left side or top. This feels very unnatural for me. You can change it by adding these settings to .vimrc.

set splitright
set splitbelow

And that is pretty much all there is to vim splits.