LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vim help,how to open multiple files with vsplit? (https://www.linuxquestions.org/questions/linux-newbie-8/vim-help-how-to-open-multiple-files-with-vsplit-798364/)

cola 03-27-2010 11:32 PM

vim help,how to open multiple files with vsplit?
 
vim -o file1 file2 opens two files spliting the window horizontally.
How to do that vertically?

sycamorex 03-27-2010 11:42 PM

Code:

vim -O file1 file2
It's a capital 'o'

cola 03-28-2010 12:22 AM

Quote:

Originally Posted by sycamorex (Post 3915053)
Code:

vim -O file1 file2
It's a capital 'o'

If i do vim file1.txt and :vsplit then how to get another file opened in that window?

barshani 03-28-2010 01:16 AM

:vi filename

grail 03-28-2010 02:15 AM

Change to new window and :e filename works too

cola 03-28-2010 05:24 AM

Quote:

Originally Posted by barshani (Post 3915115)
:vi filename

Does vi mean vi editor or visual mode?

cola 03-28-2010 05:24 AM

Quote:

Originally Posted by grail (Post 3915147)
Change to new window and :e filename works too

Is :e for editing or ex mode?

grail 03-28-2010 05:59 AM

Editing

cristalp 09-21-2011 11:22 AM

Quote:

Originally Posted by cola (Post 3915076)
If i do vim file1.txt and :vsplit then how to get another file opened in that window?

open a file by vim, then in that file type

Code:

:vsplit ANOTHERFILENAME


All times are GMT -5. The time now is 06:56 PM.