r668 - in /trunk/utils/addons/src/vim/addons: ./ vim-addons

zack at users.alioth.debian.org zack at users.alioth.debian.org
Sat May 13 02:35:04 UTC 2006


Author: zack
Date: Sat May 13 02:35:03 2006
New Revision: 668

URL: http://svn.debian.org/wsvn/?sc=1&rev=668
Log:
differentiated vim default configuration when it is invoked as "vi"

Modified:
    trunk/utils/addons/src/vim/addons/   (props changed)
    trunk/utils/addons/src/vim/addons/vim-addons

Propchange: trunk/utils/addons/src/vim/addons/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat May 13 02:35:03 2006
@@ -1,0 +1,1 @@
+*.pyc

Modified: trunk/utils/addons/src/vim/addons/vim-addons
URL: http://svn.debian.org/wsvn/trunk/utils/addons/src/vim/addons/vim-addons?rev=668&op=diff
==============================================================================
--- trunk/utils/addons/src/vim/addons/vim-addons (original)
+++ trunk/utils/addons/src/vim/addons/vim-addons Sat May 13 02:35:03 2006
@@ -25,7 +25,7 @@
 import textwrap
 
 # XXX temp, remove-me
-sys.path.insert(0, '/home/zack/pkg-vim/trunk/utils/addons/src')
+sys.path.insert(0, '../..')
 
 from vim.addons.constants import *
 from vim.addons import errors
@@ -163,6 +163,14 @@
             continue
         unsymlink(addon.files(), options.destdir)
 
+def show_action(args, options):
+    if not args:
+        raise errors.BadInvocation('you should specify the name of one add-on')
+    description = get_registry()[args[0]].description()
+    if not description:
+        description = 'no description available'
+    print textwrap.fill(args[0] + ': ' + description, subsequent_indent='  ')
+
 def main():
     actions = {}    # set up available actions
     actions['list'] = (list_action, 'list available add-ons')
@@ -172,6 +180,8 @@
     actions['disable'] = (disable_action, \
             'disables a list of add-on names given as arguments.' \
             " 'ALL' alone can be given to act on all available add-ons")
+    actions['show'] = (show_action, \
+            'show available information about a single given add-on')
 
     # help and command line parsing
     actions_description = ''




More information about the pkg-vim-maintainers mailing list