shell

Opening files in Vim

$ vim file1 file2

Opens file1 and file2 in two different buffers and shows file1 in the current viewport

$ vim -o file1 file2

Opens file1 and file2 in two different buffers and shows every one of them in a viewport with the screen splitted horizontally

$ vim -O file1 file2

Same as above but with the screen splitted vertically

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*Required Fields