From: Brandon Martin, Fri, November 14, 2008 2:51 pm
>
> Not sure what the exact term is but I want to be able to have
> snippets or templates that are tab triggered if that makes sense. I
> think in gedit they are called snippets. You can have a whole
> function laid out with placeholders so you type the triggered word
> hit tab and the then tab to each placeholder and fill it in with
> what you need.
Cream has templates, you put them in your cream-user. Example:
call Cream_template_assign("", "url", "http://www.")
Put a filetype (e.g., "html") for the first argument if you want it to
apply only to a certain filetype. (As indicated in the statusline.)
Check out the bottom of cream-templates.vim for plenty of examples
already available in Cream. "s:findchar" locates the cursor after
the template has been inserted.
--
Steve Hall [ digitect dancingpaper com ]
:: Cream... usability for Vim
:: http://cream.sourceforge.net
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
cream-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cream-general