vimenv

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

commit 152a243adfa4ad2e4f6b3ddec79fafe2f4224f68
parent 931af81d25412719b7e0d775e78f510d98ef6df6
Author: Xiaodong Xu <xxdlhy@gmail.com>
Date:   Mon Apr 16 00:18:39 +0800

Add help option

Diffstat:
_vim/bundle/tagbar | 2+-
vimenv | 5+++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/_vim/bundle/tagbar b/_vim/bundle/tagbar @@ -1 +1 @@ -Subproject commit eab0e67d1bb46884b7285cbe206f259fb2bade70 +Subproject commit f14c81770b3d22f9e82761c151885ef04444690d diff --git a/vimenv b/vimenv @@ -5,7 +5,7 @@ # author: Xu Xiaodong <xxdlhy@gmail.com> # license: GPL # created: 2012 Apr 14 -# modified: 2012 Apr 15 +# modified: 2012 Apr 16 # require 'fileutils' @@ -65,7 +65,7 @@ def list bundle = Dir.entries('_vim/bundle') plugins = bundle[2, bundle.size].sort - plugins.each { |dir| puts "Installed #{dir}" } + plugins.each { |name| puts "Installed #{name}" } total = plugins.size puts "Total #{total} plugins" @@ -78,6 +78,7 @@ opts.on("-a", "--add NAME", "Add Vim plugins") { |name| add(name) } opts.on("-r", "--remove NAME", "Remove Vim plugins") { |name| remove(name) } opts.on("-u", "--update", "Update Vim plugins") { update } opts.on("-l", "--list", "List Vim plugins") { list } +opts.on("-h", "--help", "Show help") { puts opts.to_s } if ARGV.empty? puts opts.to_s