Skip to content

Autoinstall script#452

Open
lucc wants to merge 1 commit intoVundleVim:masterfrom
lucc:autoinstall
Open

Autoinstall script#452
lucc wants to merge 1 commit intoVundleVim:masterfrom
lucc:autoinstall

Conversation

@lucc
Copy link
Copy Markdown
Contributor

@lucc lucc commented Apr 24, 2014

previous attempts

This was mentioned some times already: #414, #144, #59

info

This PR puts the autoinstall code in a seperated script autoinstall.vim which can be sourced directly from Vim. The user can thereby use a simple test to see if Vundle is installed and conditionally source the script.

ToDo

I am not yet happy with the way I put this in the README if you have good ideas just tell me.

problem when testing

I noticed that vim is able to source files even with help of the netrw plugin (so the file can be an url). The only problem I have at the moment is to test this script via the github link. If I source my local copy it works and installs vundle. If I try

:source https://raw.githubusercontent.com/lucc/vundle/autoinstall/autoinstall.vim

my vim uses elinks -source to load the script to a temp file and then gives me errors as the tempfile seems to contain html code. Both

curl https://raw.githubusercontent.com/lucc/vundle/autoinstall/autoinstall.vim

and

elinks -source https://raw.githubusercontent.com/lucc/vundle/autoinstall/autoinstall.vim

work fine on the command line. Also my private test script works fine:

:source http://luc42.lima-city.de/test

(no worries it just containes echo 'test successful')

@lucc
Copy link
Copy Markdown
Contributor Author

lucc commented Apr 29, 2014

I rebased this on next and squashed the commits. It should only be merged after v0.10.2.

@lucc
Copy link
Copy Markdown
Contributor Author

lucc commented Apr 29, 2014

I did some tests and the sourcing of the the github url now works as expected. I think I misstyped the urls befor or there was some weird caching going on.

Now the only thing that is missing are some tests on other operating systems. I have only OS X here so Windows is still a question but as it is nearly pure vimscript it might work system independent.

This script can be sourced to install Vundle.vim from github.com if it is not
already installed.

TODO:
* test the sourcing of the url
* test on different operating systems
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.

1 participant