Hello, "Allegory Bill" <[EMAIL PROTECTED]> wrote : > The desired task: > > 1.) Store a snippet of code in one central location > 2.) Call that snippet in various files > 3.) Upon updating the central snippet, have that code automatically > update in the places it's called > > We're talking HTML & text files. :-) > > Is this possible? Any suggestions most appreciated.
1- There are many template expanders, I'm also maintening one. Have a look at the vim.wikia.com, category Automated Text Insertion, most template expander plugins (TEP) are listed. 2- My fork of mu-template support inclusion between template-files (and somehow recursion, even if I don't know yet if it is really useful). I can't tell for other TEP. 3- I'm sure sure about what you mean. You mean that if you change a template-file, all the already expanded texts will get automatically automatically re-expanded ? I suspect this is not the correct way to proceed. Have a look at "include" in php, or scripts like gTML. HTH, -- Luc Hermitte http://lh-vim.googlecode.com/ http://hermitte.free.fr/vim/ --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
