-
Notifications
You must be signed in to change notification settings - Fork 0
Pimp up your old templates with dynamic place-holders
vim-scripts/stakeholders
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a mirror of http://www.vim.org/scripts/script.php?script_id=3326 Experimental. Older templating plugins for VIM often used simple markup for placeholders (e.g. <+VARIABLE_NAME+>). A placeholder was simply a pattern you could easily search for. Some newer templating plugins support dynamic replacement of placeholders with the same name. The stakeholders plugin turns your old templating system into a high potential overachiever. It provides dynamic replacement of placeholders with the same name/ID for older templating plugins. By default, it assumes placeholders match /<+\([[:alpha:]_]\+\)+>/ since this pattern is used in several templating systems (e.g., vimscript #1160). You can easily change that pattern by setting |g:stakeholders#def| or b:stakeholders_def. Usage~ The tskeleton templating plugin provides a parameter (|g:tskeleton#enable_stakeholders|) that enables integration with the stakeholders plugin. For other templating plugins, you have to enable stakeholders by calling either |stakeholders#EnableBuffer()| or |stakeholders#EnableInRange()|. Demo: http://vimsomnia.blogspot.com/2010/11/tskeleton-and-stakeholders-vim-plugins.html Also available via git: http://github.com/tomtom/stakeholders_vim/
About
Pimp up your old templates with dynamic place-holders
Resources
Stars
Watchers
Forks
Packages 0
No packages published