Hi, stosss wrote: > > When opening one file. Is it possible to open it in a split view? When > I read this I thought it was possible to open one file and have a > split view at the start. > > *-o* > -o[N] Open N windows, split horizontally. If [N] is not given, > one window is opened for every file given as argument. If > there is not enough room, only the first few files get a > window. If there are more windows than arguments, the last > few windows will be editing an empty file. > > I know I can type :split once the file is open and get the split I > want. If the answer to my question has been answered before I > apologies because I could not find it in spite of or because of the > large amount of information available. If anyone has an effective > method for actually being able to find answers in all that > information, I would like know. I went to the FAQ and didn't see > anything about this I also followed the FAQ suggestions for reading > the mail list archives. I could not find them on www.gmane.org and > there was nothing about my question in the few parallel questions I > found at http://tech.groups.yahoo.com/group/vim. Now I am going to go > back and learn about the tab stuff I saw.
do you want both windows to display the same buffer or do you want the second one to be empty? In the fist case you can start vim with vim -c split myfile In the second case use vim -c new myfile With the -c option you tell Vim which commands shall be executed after loading the first file. Thus the first commands creates a second window for myfile, while the second one opens a new window. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php To unsubscribe, reply using "remove me" as the subject.
