Initial commit.
+ vim config files + git config files
This commit is contained in:
73
vim/update_bundles
Executable file
73
vim/update_bundles
Executable file
@@ -0,0 +1,73 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
# script based on Tammer Saleh's blog post
|
||||
# http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen
|
||||
|
||||
require 'fileutils'
|
||||
require 'open-uri'
|
||||
|
||||
git_bundles = [
|
||||
"https://github.com/tpope/vim-rake.git",
|
||||
"https://github.com/tpope/vim-endwise.git",
|
||||
"https://github.com/tpope/vim-fugitive.git",
|
||||
#"https://github.com/scrooloose/syntastic.git",
|
||||
"https://github.com/scrooloose/nerdcommenter.git",
|
||||
"https://github.com/cakebaker/scss-syntax.vim.git",
|
||||
"https://github.com/tpope/vim-rvm.git",
|
||||
#"https://github.com/tpope/vim-surround.git",
|
||||
"https://github.com/tpope/vim-ragtag.git",
|
||||
"https://github.com/itspriddle/vim-jquery.git",
|
||||
"https://github.com/hallison/vim-ruby-sinatra.git",
|
||||
"https://github.com/tpope/vim-vividchalk.git",
|
||||
"https://github.com/mmalecki/vim-node.js.git",
|
||||
"https://github.com/pangloss/vim-javascript.git",
|
||||
"https://github.com/tpope/vim-markdown.git",
|
||||
#"https://github.com/tpope/vim-git.git",
|
||||
"https://github.com/tpope/vim-cucumber.git",
|
||||
"https://github.com/vim-ruby/vim-ruby.git",
|
||||
"https://github.com/manalang/jshint.vim.git",
|
||||
# "https://github.com/tpope/vim-rails.git",
|
||||
"https://github.com/kien/ctrlp.vim.git",
|
||||
"https://github.com/scrooloose/nerdtree.git",
|
||||
"https://github.com/vim-scripts/ZoomWin.git",
|
||||
"https://github.com/rgarver/Kwbd.vim.git",
|
||||
"https://github.com/Lokaltog/vim-powerline.git",
|
||||
"https://github.com/Raimondi/delimitMate.git",
|
||||
"https://github.com/goatslacker/mango.vim.git",
|
||||
"https://github.com/altercation/vim-colors-solarized.git",
|
||||
"https://github.com/marcus/vim-mustang",
|
||||
"https://github.com/altercation/vim-colors-solarized.git",
|
||||
"https://github.com/sjl/badwolf.git",
|
||||
"https://github.com/groenewege/vim-less.git"
|
||||
]
|
||||
|
||||
vim_org_scripts = [
|
||||
#["autoclose", "10873", "plugin"]
|
||||
]
|
||||
|
||||
bundles_dir = File.join(File.dirname(__FILE__), 'bundle')
|
||||
|
||||
FileUtils.cd(bundles_dir)
|
||||
|
||||
puts "clearing out bundles directory"
|
||||
Dir["*"].each do |dir|
|
||||
FileUtils.rm_rf dir
|
||||
end
|
||||
|
||||
git_bundles.each do |url|
|
||||
dir = url.split('/').last.sub(/\.git$/, '')
|
||||
puts "unpacking #{url} #{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
|
||||
|
||||
puts "\nbundle installation complete\n"
|
||||
Reference in New Issue
Block a user