Vimcasts
Avsnitt

Using selected text in UltiSnips snippets

Dela

When UltiSnips is triggered from Visual mode it captures the selection and makes it available to our snippets. We can then insert the selection unchanged with the $VISUAL placeholder, or we can use UltiSnips Python interpolation to transform the text before inserting it back into the document.

Podden och tillhörande omslagsbild på den här sidan tillhör Drew Neil. Innehållet i podden är skapat av Drew Neil och inte av, eller tillsammans med, Poddtoppen.