Thursday, June 21, 2012

Re: Can vim be made to start with selected files already open?

On Jun 21, 2012, at 12:14 PM, Tim Gray wrote:

> On Jun 21, 2012 at 12:08 PM -0400, Eric Weir wrote:
>> Thanks for the suggestion. Is it really that simple? If so, it might meet my need. Would I need to include the path to the files? And what does the "-o5" part do?
>
> Try looking in the help: ':h -o' should get you there.

Thanks, Tim. Looks like what I would want is "-p5" since I want the files opened in tabs.

>> I looked for help with aliases in the Oualline book, but didn't find anything. Help brought up "antialias," nothing on "alias." [I'm sure it's there somewhere. I just need to look harder.]
>
> It's not a vim thing, that's why you can't find it in there. It's a bash thing. In your .bashrc:
>
> alias vimf='vim -o5 xx.file1 file2 file3 file4'
>
> Just like what was written. Note that changes you make to your .bashrc file don't get read automatically. Only when you login or resource the file. Google about 'bash', 'bashrc', and 'bash alias' to learn more.

A quick scan of results on these topics gives me a vague idea of what they are. I'll have to study more carefully to get clear how I would construct an alias to access the files I want to load. I.e., whether the path needs to be explicit. Also to call it for MacVim.

Just start OS X Terminal. Would it be correct to say it's a bash console?

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA
eeweir@bellsouth.net

"Style is truth."

- Ray Bradbury

--
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

No comments: