Perhaps I should have focused on another point. I was thinking of some kind of plugin.
A plugin would consist of functionality ( thus vim script functions) mappings commands This would mean when developping some scripts and you are already using them you can just plug out the script (or namespace).. and plug in again forcing reloading of everything in every file. Each buffer would use a collection of plugins.. So plugin data (think of html attribute completion/ ...) might be shared among buffers but not all. It dosn't make sens to add the same 50 mappings to a.tex, b.tex and c.tex.. (It doesn't harm either..) I'll try to implement it so that you see how it might look like.. Marc