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

31 lines (24 sloc) 0.732 kb
require 'rake'
FOLDERS = %w(colors ftdetect ftplugin indent syntax doc plugin autoload)
SCRIPTS = %w(personal tabular nerdtree vim-cucumber vim-rails vim-git vim-haml vim-scratch ack.vim)
DOTVIM = "#{ENV['HOME']}/.vim"
desc "Pull down submodules"
task :preinstall do
puts `git submodule init`
exec('git submodule update')
end
desc "Install the files into ~/.vim"
task :install do
FileUtils.mkdir_p FOLDERS.map{|f| "#{DOTVIM}/#{f}" }
SCRIPTS.each do |s|
FOLDERS.each do |f|
FileUtils.cp Dir["#{s}/#{f}/*"], "#{DOTVIM}/#{f}"
end
end
end
desc "Remove everything in ~/.vim"
task :uninstall do
FileUtils.rm_rf DOTVIM
end
desc "Blow everything out and try again."
task :reinstall => [:uninstall, :install]
Jump to Line
Something went wrong with that request. Please try again.