Vim Tips Wiki
Register
(Created page with "I had to edit the Python file in order to make it work - in the attach_menus function, where it sets up DEBUG_MSG (2 places this happens), change %(sep)c to %(sep)s <nowiki> ...")
 
(standard format)
Line 1: Line 1:
  +
{{ScriptComments|3455|headlights: create a TextMate-like Bundles menu}}
I had to edit the Python file in order to make it work - in the attach_menus function, where it sets up DEBUG_MSG (2 places this happens), change %(sep)c to %(sep)s
 
   
  +
==Comments==
<nowiki>
 
 
I had to edit the Python file in order to make it work - in the attach_menus function, where it sets up DEBUG_MSG (2 places this happens), change %(sep)c to %(sep)s
DEBUG_MSG = "See the '%(root)s > debug' menu for details.%(sep)s" % locals()
 
  +
<pre>
ERROR_MSG = "Headlights encountered a critical error. %(DEBUG_MSG)s" % locals()
 
 
DEBUG_MSG = "See the '%(root)s > debug' menu for details.%(sep)s" % locals()
 
ERROR_MSG = "Headlights encountered a critical error. %(DEBUG_MSG)s" % locals()
   
if not self.debug_mode:
+
if not self.debug_mode:
DEBUG_MSG = "To enable debug mode, see :help headlights_debug_mode%(sep)s" % locals()
+
DEBUG_MSG = "To enable debug mode, see :help headlights_debug_mode%(sep)s" % locals()
</nowiki>
+
</pre>
   
 
But I had been wanting a way to keep track of plugins and this looks like a good way.
 
But I had been wanting a way to keep track of plugins and this looks like a good way.
  +
----

Revision as of 04:56, 19 August 2011

Use this page to discuss script 3455 3455

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Comments

I had to edit the Python file in order to make it work - in the attach_menus function, where it sets up DEBUG_MSG (2 places this happens), change %(sep)c to %(sep)s

DEBUG_MSG = "See the '%(root)s > debug' menu for details.%(sep)s" % locals()
ERROR_MSG = "Headlights encountered a critical error. %(DEBUG_MSG)s" % locals()

if not self.debug_mode:
    DEBUG_MSG = "To enable debug mode, see :help headlights_debug_mode%(sep)s" % locals()

But I had been wanting a way to keep track of plugins and this looks like a good way.