Vim splits and tabs

Updated: 28 October 2024

Move active window to a new tab
:tab split

Move to next tab
gt

Move to previous tab
gT

Start vim with files in horizontal splits

vim -o fileA fileB

Start vim with files in vertical splits

vim -O file1 file2

Leave a comment