Read placeholders using Vimscript interpolation

Asked by Dag Odenhall

I'm forced to use Python interpolation for some very simple snippets. I'm not sure if it matters, presumably the Python interpreter will already be booted because of UltiSnips itself, but I'm wondering anyway, is there anything like the "t" variable from Python interpolation in Vimscript interpolation?

Question information

Language:
English Edit question
Status:
Solved
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Solved by:
SirVer
Solved:
Last query:
Last reply:
Revision history for this message
Best SirVer (sirver) said :
#1

No there isn't. And if there would be, it would be significantly slower than using python interpolation (because it would need to call into python again). I doubt that you would feel the difference however and a patch is welcome.

You are right that python is already 'booted' so to say, so using python interpolation is actually pretty cheap in UltiSnips.

Revision history for this message
Dag Odenhall (dag.odenhall) said :
#2

Thanks SirVer, that solved my question.