Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 70 lines (57 sloc) 1.898 kb
#!/usr/bin/env ruby
# http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen
# Other plugins
# * Git
# git://github.com/tpope/vim-fugitive.git
# git://github.com/tpope/vim-git.git
# * File explorer / navigation
# git://github.com/scrooloose/nerdtree.git
# git://github.com/vim-scripts/project.tar.gz
# * Comments
# git://github.com/tsaleh/vim-tcomment.git
# * Autocomplete
# git://github.com/ervandew/supertab.git
# * Python
# git://github.com/fs111/pydoc.vim.git
# * Ruby
# git://github.com/tsaleh/vim-shoulda.git
# git://github.com/tpope/vim-cucumber.git
# * Markup
# git://github.com/tpope/vim-haml.git
# * Scala
# https://github.com/bdd/vim-scala
vim_org_scripts = [
["anotherdark", "4449", "colors"], # http://www.vim.org/scripts/script.php?script_id=1308
]
# xmledit for other filetypes
xmledit_filetypes = ["ant", "html", "jsp", "php", "sgml", "xhtml"]
require 'fileutils'
require 'open-uri'
puts "Updating bundles"
puts " Updating submodules"
`git submodule update --init --recursive`
bundles_dir = File.join(File.dirname(__FILE__), "bundle")
FileUtils.cd(bundles_dir)
vim_org_scripts.each do |name, script_id, script_type|
if File.exist? name
puts " Removing #{name}"
FileUtils.rm_rf name
end
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 " Xmledit for other filetypes"
xmledit_filetypes.each do |filetype|
target = File.expand_path("./xmledit/ftplugin/#{filetype}.vim")
if not File.exist? target
FileUtils.ln_s(File.expand_path("./xmledit/ftplugin/xml.vim"), target)
end
end
# Build command-t
FileUtils.cd("command-t")
puts " Building command-t"
`rake make`
Jump to Line
Something went wrong with that request. Please try again.