window

:vsplit / :split / :tabnew

:split (or :sp) opens a horizontal split, :vsplit (:vsp) a vertical split, :tabnew a new tab page. All three optionally take a filename to open in the new pane/tab.

:vsplit [file]   :split [file]   :tabnew [file]  (command mode)

Variations

Keystroke Effect
:vnew Vertical split with a new empty buffer
:new Horizontal split with a new empty buffer
:tabclose Close the current tab page
gt / gT Cycle to next / previous tab

Examples

:vsp src/app.js

Open src/app.js in a vertical split on the right

:sp

Split current window horizontally, both showing same buffer

:tabnew README.md

Open README.md in a new tab

Gotcha

Tabs in Vim are 'workspaces' of splits, NOT a list of open files like in modern editors — you probably want buffers (:b, :ls) rather than tabs.

Related

← All Vim commands · Vim cheat sheet