vimenv

configure vim environment
git clone git://git.unixkoans.com/vimenv.git
Log | Files | Refs | Submodules

commit b7822424358c63840c532962be8f6f8b052d5b36
parent 3e56869aed83704228597d353e41bd908cf1465d
Author: Xiaodong Xu <[email protected]>
Date:   Sun Apr 15 15:06:29 +0800

Fix update error

Diffstat:
vimenv | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/vimenv b/vimenv @@ -34,12 +34,7 @@ def add(author_slash_name) desc = '_vim/bundle/' + name puts "Adding #{src} to #{desc}" - - arg = ["add #{src} #{desc}", "init", "update"] - - arg.each do |elt| - system "git submodule #{elt}" - end + system "git submodule add #{src} #{desc}" end def remove(name) @@ -58,7 +53,12 @@ end def update puts "Updating Vim plugins" - system "git submodule foreach git pull" + + arg = ["init", "update", "foreach git pull origin master"] + + arg.each do |elt| + system "git submodule #{elt}" + end end opts = OptionParser.new