Standardized naming of plugins in vim/bundle

This commit is contained in:
yan
2011-12-06 23:45:08 -08:00
committed by Yan Pritzker
parent 7ff3ccf1f1
commit d268b0b2ba
5 changed files with 31 additions and 6 deletions

13
util/addvim Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env ruby
unless ARGV.size==1
puts "Example: addvim https://github.com/robgleeson/hammer.vim.git"
else
begin
repo=ARGV.first
bundle_path=repo.gsub("https://github.com/","").gsub(".git","").gsub("/","-").gsub(".vim","")
system("git submodule add #{repo} vim/bundle/#{bundle_path}")
rescue
puts "Sorry, couldn't parse your path: #{$!}"
end
end