> I then tried it out on one of the same author's scripts: > :AlignCtrl mp0P0 > to which Gvim responds: > E492: Not an editor command: AlignCtrl mp0P0 > I know I'm missing something obvious here. Anyone know > what?
There exists the FuncUndef autocommand which can be used to autoload functions. But I'm not aware of something corresponding to commands. Thus AsNeeded has no option to get notified that you want to execute this particular command it should load. Thus it defines it's own commands where you have to add your command as argument. (:AN(X)) See :h asneeded.txt. I've tried writing a workaround providing a fake command which sources the original file once but this doesn't work very well and you can forgett about completions... Hope this helps Marc
