Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions vim-bundle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ bundle_path = "~/.vim/bundle"
def usage
puts "usage: vim-bundle <command>"
puts ""
puts " \033[36mlist \033[0m- list all bundles currently installed"
puts " \033[36minstall <github user>/<repository name> \033[0m- installs plugin from github. If no user is specified vim-scripts is used"
puts " \033[36mupdate <github user>/<repository name> \033[0m- updates plugin. If no user is specified vim-scripts is used"
puts " \033[36mlist \033[0m list all bundles currently installed"
puts " \033[36minstall <github user>/<repository name> \033[0m installs plugin from github. If no user is specified vim-scripts is used"
puts " \033[36mupdate <github user>/<repository name> \033[0m updates plugin. If no user is specified vim-scripts is used"
end

if ARGV.first == "list"
Expand Down Expand Up @@ -62,7 +62,7 @@ elsif ARGV.size > 1

unless File.exists?(File.expand_path(plugin_tar))
puts plugin_tar
puts "\033[31mFailed to download tar"
puts "\033[31mFailed to download tar\033[0m"
exit
end

Expand All @@ -74,9 +74,9 @@ elsif ARGV.size > 1
`rm -r #{old_plugin_path}`
puts ">> Moving new plugin"
`mv #{plugin_path} #{old_plugin_path}`
puts "\033[32m#{plugin_name} is now updated!"
puts "\033[32m#{plugin_name} is now updated!\033[0m"
else
puts "\033[32m#{plugin_name} is now installed!"
puts "\033[32m#{plugin_name} is now installed!\033[0m"
end
else
usage
Expand Down