Created
October 28, 2011 09:33
-
-
Save bascht/1321961 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
git_bundles = [ | |
"git://github.com/shemerey/vim-peepopen.git", | |
"git://github.com/astashov/vim-ruby-debugger.git", | |
"git://github.com/bascht/vim-snipmate.git", | |
"git://github.com/tomtom/tlib_vim.git", | |
"git://github.com/MarcWeber/vim-addon-mw-utils.git", | |
"git://github.com/scrooloose/nerdtree.git", | |
"git://github.com/timcharper/textile.vim.git", | |
"git://github.com/tpope/vim-cucumber.git", | |
"git://github.com/tpope/vim-fugitive.git", | |
"git://github.com/tpope/vim-git.git", | |
"git://github.com/tpope/vim-haml.git", | |
"git://github.com/gmarik/vim-markdown.git", | |
"git://github.com/tpope/vim-repeat.git", | |
"git://github.com/tpope/vim-surround.git", | |
"git://github.com/tpope/vim-vividchalk.git", | |
"git://github.com/juvenn/mustache.vim.git", | |
"git://github.com/tsaleh/vim-align.git", | |
"git://github.com/tsaleh/vim-shoulda.git", | |
"git://github.com/tsaleh/vim-supertab.git", | |
"git://github.com/tsaleh/vim-tcomment.git", | |
"git://github.com/vim-ruby/vim-ruby.git", | |
"git://github.com/vim-scripts/Zenburn.git", | |
"git://github.com/mattn/zencoding-vim.git", | |
"git://github.com/altercation/vim-colors-solarized.git", | |
"git://github.com/vim-scripts/FuzzyFinder.git", | |
"git://github.com/Finkregh/vim-l9.git", | |
"git://github.com/mileszs/ack.vim.git", | |
"git://github.com/kchmck/vim-coffee-script.git", | |
"git://github.com/ervandew/screen.git", | |
"git://github.com/vim-scripts/vcscommand.vim.git", | |
"git://github.com/sjl/gundo.vim.git", | |
"git://github.com/tpope/vim-speeddating.git", | |
"git://github.com/scrooloose/syntastic.git", | |
"git://github.com/claco/jasmine.vim.git" | |
] | |
vim_org_scripts = [ | |
["IndexedSearch", "7062", "plugin"], | |
# ["jquery", "12107", "syntax"], | |
] | |
require 'fileutils' | |
require 'open-uri' | |
bundles_dir = File.join(File.dirname(__FILE__), "bundle") | |
FileUtils.cd(bundles_dir) | |
puts "Trashing everything (lookout!)" | |
Dir["*"].each {|d| FileUtils.rm_rf d } | |
git_bundles.each do |url| | |
dir = url.split('/').last.sub(/\.git$/, '') | |
puts " Unpacking #{url} into #{dir}" | |
`git clone #{url} #{dir}` | |
FileUtils.rm_rf(File.join(dir, ".git")) | |
end | |
vim_org_scripts.each do |name, script_id, script_type| | |
puts " Downloading #{name}" | |
local_file = File.join(name, script_type, "#{name}.vim") | |
FileUtils.mkdir_p(File.dirname(local_file)) | |
File.open(local_file, "w") do |file| | |
file << open("http://www.vim.org/scripts/download_script.php?src_id=#{script_id}").read | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment