Skip to content

Instantly share code, notes, and snippets.

@jeffreyiacono
Created October 1, 2012 06:19
Show Gist options
  • Save jeffreyiacono/3809787 to your computer and use it in GitHub Desktop.
Save jeffreyiacono/3809787 to your computer and use it in GitHub Desktop.
(m/g)vim windowing

(M/G)VIM

Open N windows split horizontally / vertically

-o[N]                Open N windows (default: one for each file)
-O[N]                Like -o but split vertically

you can also specify files:

vim -o3 file1.txt file2.txt file3.txt

And it will open each in 3 separate horizontally split windows

Open all files matching file* in different tabs

mvim -p file*

split window horizontally and open filename

:sp filename (horizontal)

split window vertically and open filename

:vsp filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment