From ae2ac93c71923c91f20fc20be95f8bc7900ab3fd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 27 Jun 2014 15:48:02 -0400 Subject: [PATCH] Have vim:update update vim plugins too --- rake/vim.rake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rake/vim.rake b/rake/vim.rake index 065454ac..9320c9cb 100644 --- a/rake/vim.rake +++ b/rake/vim.rake @@ -1,6 +1,7 @@ require_relative "lib/output" require_relative "lib/homebrew" +require_relative "lib/sh" desc "Ensure vim/macvim is installed and up to date" task :vim => "vim:update" @@ -19,8 +20,15 @@ namespace :vim do task :update => 'vim:install' do path = File.expand_path("~/.vim") + echo "Updating vim" sh "cd #{path} && git pull" + + echo "Updating vim plugins" + Dir.glob("#{path}/bundle/*") do |f| + echo ":: Updating #{File.basename(f)}:" + sh_safe "cd #{f} && git pull" + end end desc "Remove vim"