[Vim] open n files with vertical split

How to open 3 files with a vertical split :
[pene@donunix] vim -O fic1 fic2 fic3

To switch between each files press [ctrl+W] + a direction key.
If you want to open another file in your Vim session write in [Escape] mode :
:vsplit fic4 for vertical split
:split fic5 for horizontal split

1 comment:

lucapost said...

yeah! and for open multiple files in orizzontal split run:

vim - o file1 file2