Skip to content

Instantly share code, notes, and snippets.

@oozzal
Created September 18, 2014 05:15
Show Gist options
  • Save oozzal/c4946d70cd69f6857ea3 to your computer and use it in GitHub Desktop.
Save oozzal/c4946d70cd69f6857ea3 to your computer and use it in GitHub Desktop.
#!/Users/cloudfactory001/.rvm/rubies/ruby-2.1.2/bin/ruby
require 'colorize'
path = ARGV[0]
unless path
print "Usage:".colorize(:red)
puts "\tvinstall <username>/<repo-name>".colorize(:green)
print "Example:".colorize(:red)
puts "vinstall tpope/vim-rails".colorize(:green)
exit
end
repo = path.split("/").last if path
`git clone git://github.com/#{path}.git ~/.vim_runtime/sources_non_forked/#{repo}`
puts "Installation of #{repo.colorize(:green)} finished. Restart vim."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment