In Ultisnips, is there a way to create a snippet that will replace empty space in the snippet with a *
character upon exiting Insert mode (or as I type)?
For example, I have a snippet that looks like so:
snippet cch
/******************************/
/* ${1} */
/******************************/
endsnippet
After expanding this snippet, I would like to fill the space around the input ${1}
with *
characters after exiting Insert mode such that the width of this line will match the lines above and below.
So if I type cch <tab>
and then Function Prototypes <Esc>
it will look like the following:
/******************************/
/***** Function Prototypes ****/
/******************************/
Is this possible?