sponsor Vim development Vim logo Vim Book Ad

PluginKiller : Helps plugin writers find trouble-causing options before their users do

 script karma  Rating 16/4, Downloaded by 2384  Comments, bugs, improvements  Vim wiki

created by
Charles Campbell
script type
The PluginKiller helps Vim plugin writers to determine which options that users might set that will cause problems with their plugin before their users do!

To do this, the PluginKiller utilizes two instantiations of vim.  The first one is the pluginkiller server; it keeps a copy of the current potential trouble-making options.  The second vim is your working vim; in it you exercise your plugin.  Whenever your plugin works with the currently active trouble-makers, type :PKg (for PluginKiller-good).  This tells the PluginKiller server about the nice set of options it selected, and it responds with a new set.

On the other hand, whenever your plugin isn't performing up to your exacting specifications, type :PKb (for PluginKiller-bad).  This command tells the PluginKiller server about the trouble it caused, and the PluginKiller responds with a smaller set of potential troublemakers.

You'll need to repeat trying out your plugin and typing :PKg or :PKb until the PluginKiller has found the culprit option.  Its OK to quit the second vim and to use :PK to resume working with the PluginKiller server -- whether you need to quit and resume depends on how your plugin operates -- :PK just reloads the current settings that the PluginKiller wants to have tried out.

(alpha/beta version available at http://www.drchip.org/astronaut/vim/index.html#PLUGINKILLER)
install details
(NOTE: you need vimball v18 or later; see vimscript#1502; vim 7.1a or later should already be ok)

    vim pluginkiller.vba.gz
     :so %

The directions under |pluginkiller-steps| give detailed information on how to use the pluginkiller.


rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
pluginkiller.vba.gz 3 2009-02-08 7.0 Charles Campbell added more options for pluginkiller's checkout: acd, insertmode, num, spell
pluginkiller.vba.gz 2 2006-10-19 7.0 Charles Campbell The acd option even causes the pluginkiller itself problems; hence, it doesn't define it for testing (although a commented out version is available).

Pluginkiller is now easier to use: type :PK in a test file with vim and the pluginkiller will initialize itself using a server.  Pluginkiller needs +clientserver enabled vim.
pluginkiller.tar.gz 1 2006-03-08 6.0 Charles Campbell Initial upload.
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.