Pimp up your templates with charismatic, overachieving, dynamically expansive place-holders
Vim script
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autoload
doc
etc
plugin
.gitignore
CHANGES.TXT
README
addon-info.json

README

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 (e.g. 
xptemplate vimscript #2611) 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 
for older templating plugins. By default, it assumes placeholders match 
/<+\([[:alpha:]_]\+\)+>/ since this pattern is used in several 
templating systems. 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


Known issues~

    - Replacing a visual selection by pasting text (using paste#Paste()) 
      doesn't work. You have to delete the selection first and paste the 
      text afterwards.


Also available via git: http://github.com/tomtom/stakeholders_vim/

-----------------------------------------------------------------------

Status:  Experimental
Install: See http://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT
See http://github.com/tomtom for related plugins.