Monday, June 27, 2011

Re: Multiple Vim setup on the same computer?

On 2011-06-27, kuru wrote:
> Hi
>
> I want to be able to setup couple different Vims, like for editing,
> for projects etc. i want them to be totally separate installations and
> have different plugins script base. What would eb the best optimum
> way?

I don't know about "best optimum," but if were to do that, I think I
would write a wrapper shell script or an alias for each
configuration like this:

alias vima='vim -u ~/.vimarc'
alias vimb='vim -u ~/.vimbrc'

etc. Then in each vimrc file I would define 'runtimepath' to refer
to a different personal configuration directory for each
configuration, e.g.,

let &rtp = $HOME.'/.vima,'.$VIM.'/vimfiles,'.$VIMRUNTIME.','$VIM.'/vimfiles/after,'.$HOME.'.vima/after'

If you want to use common settings for most options, you
could source your common ~/.vimrc in each project-specific vimrc:

source ~/.vimrc

HTH,
Gary

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