Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow user configuration #187

Closed
wants to merge 3 commits into from
Closed

allow user configuration #187

wants to merge 3 commits into from

Conversation

CD3
Copy link

@CD3 CD3 commented Jun 22, 2012

OK, now that I understand how the options framework is setup...

I switched the order of the s:parse_name and s:parse_options calls in the init_bundle function so that user options will override defaults set from the bundle name. The three options that can now be set are 'rtp', 'name' and 'uri'. the 'name' option is handy if you want to bundle to be cloned to a different directory than the repositories name. the 'uri' option is probably most useful for allowing you to clone ssh:// repos, you can specify a bundle name like 'gmarik/vundle' and pass { 'uri' : 'ssh://git@github.com/gmarik/vundle' } to allow you to clone your push accessible repo.

I hope this isn't an already supported feature that I just couldn't figure out how to use.

CD3 added 3 commits June 21, 2012 10:45
changed order of dictionaries in a call to extend that lets user options
passed as a dictionary to the Bundle command override default parameters
obtained by parsing the repository url.
Added a section on passing options to the Bundle command.
edited the vundle#installer#install function to lookup (and use) the
configuration specified by the users Bundle commands.
let b = bb
break
endif
endfor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did the same thing with a simple code in my pull request #200

let n = substitute(a:name,"['".'"]\+','','g')
let b = filter(copy(g:bundles), 'v:val.name_spec == n')[0]

@gmarik
Copy link
Contributor

gmarik commented Aug 11, 2012

extend allows passing 'keep' flag to keep optsions instead overriding. :h extend

I've looked into this.
It looks like it's not as trivial as i'd expect it to be due to the fact that'd like to see options shown when :BundleInstall is run to be consistent.
I'm open to suggestions.

@MarcWeber
Copy link

rtp is supported by now - what's current status of this PR?

@lucc
Copy link
Contributor

lucc commented Apr 27, 2014

I think this was already addressed in #406. If I'm right this one can be closed.

@jdevera
Copy link
Contributor

jdevera commented Apr 29, 2014

Indeed, this is already implemented.

@jdevera jdevera closed this Apr 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants