Standardized naming of plugins in vim/bundle
This commit is contained in:
13
util/addvim
Executable file
13
util/addvim
Executable 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
|
||||
Reference in New Issue
Block a user