Thursday, June 21, 2012

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

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.

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

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

Post a Comment