vim Split windows

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • :split <file>
  • :vsplit <file>
  • :sp <- shorthand for split
  • :vsp <- shorthand for vsplit

Remarks

When called from the command line, multiple files can be provided in the argument and vim will create one split for each file. When called from ex mode, only one file can be opened per invocation of the command.



Got any vim Question?