pydave/AsyncCommand — Issue #10: Can this plugin be made easier to extend?
Author: moorec
Created: 2012-02-11 14:40:13+00:00
State: open

I've been working on a flymake-like plugin that uses AsyncCommand to compile asynchronously. Here it is:
http://www.vim.org/scripts/script.php?script_id=3924

Unfortunately, the plugin required making a few unconfigurable changes to AsyncCommand. The end results is that I ended up copying some of the implementation and modifying it slightly. This is a very poor solution.

I would not expect you to add user-definable functions all over the place in AsyncCommand because you could never really predict how users will want to customize it. I do have a suggestion, though. If the script's methods were not script-scope (s:something), the plugin would be easy to extend. In my case, I could then use the after directory and function! to redefine the functions that needed changed.

I'm also open to other suggestions.

Thanks,
Chad