timl icon indicating copy to clipboard operation
timl copied to clipboard

Document file loading

Open sjl opened this issue 11 years ago • 3 comments

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?

sjl avatar Apr 05 '14 15:04 sjl

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.

tpope avatar Apr 05 '14 16:04 tpope

Okay that seems sane. Maybe have a note in the readme or docs about it.

sjl avatar Apr 05 '14 16:04 sjl

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.

tpope avatar Apr 05 '14 17:04 tpope