vim-UltiSnips: expand one snippet in another

1k Views Asked by At

I would like to DRY up my snippets by expanding one snippet from another.

For example some python snippets:

snippet all from __future__ import print_function import numpy as np endsnippet

snippet ia import $1 as $2 endsnippet

snippet future from __future import print_function

Is there a way I can call the ia snippet and the future snippet from within the all snippet whilst passing values in for the placeholders?

1

There are 1 best solutions below

0
On

I submitted a github issue about this, and was redirected to this github issue.