https://github.com/tomtom/stakeholders_vim
Pimp up your templates with charismatic, overachieving, dynamically expansive place-holders
https://github.com/tomtom/stakeholders_vim
Last synced: 9 months ago
JSON representation
Pimp up your templates with charismatic, overachieving, dynamically expansive place-holders
- Host: GitHub
- URL: https://github.com/tomtom/stakeholders_vim
- Owner: tomtom
- Created: 2010-11-07T09:14:53.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2014-06-28T17:19:53.000Z (almost 12 years ago)
- Last Synced: 2025-01-02T18:48:07.856Z (over 1 year ago)
- Language: VimL
- Homepage: http://www.vim.org/scripts/script.php?script_id=3326
- Size: 156 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: CHANGES.TXT
Awesome Lists containing this project
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.