timl
timl copied to clipboard
Document file loading
So according to the current docs, .tim files in autoload/... will get loaded correctly. It also seems like .tim files in after/... get run automatically, but ones in plugin/ and such don't. Is this a bug, or intentional?
Example: I rewrote tslime in TimL, and it's a single .tim file in plugin/. It doesn't actually get loaded unless I source it though. Is the idea that folks will use a .vim file to bootstrap all the various commands and point them at autoload/ or is this just a bug?
I played with automatically loading plugins and had issues. I don't remember what they were. (I thought it was in the Git history but I don't see it.) I think a stub of a .vim plugin is probably the way to go. This is probably true of filetype plugins as well, after the load order issues you discovered.
Okay that seems sane. Maybe have a note in the readme or docs about it.
Since none of the other magic loading is documented, a sentence or two in the README to steer users in the right direction is probably all that is needed.