Utility of a new fragment UltiSnips

I am trying to create a new piece of code that the author of UltiSnips does at 1:28 in this tutorial video that he made http://www.youtube.com/watch?v=f_WQxYgK0Pk

How do you put endnippets inside a fragment without invoking the end of the fragment?

So far I have added the following to ~ / .vim / UtliSnips / snippets.snippets

snippet snip "The Snippet Snippet"
snippet ${1:Trigger} "${2:Description}" ${3:Options}
${0}
 endsnippet
endsnippet

This is somewhat of a solution, but it creates spaces at the beginning of the evey "endnippet" line for every snippet I make. I want to get it right to the left edge of the screen just like in the video. Any suggestions?

+4
source share
1 answer

7:50 8:17. , , ,

snippet snip "The Snippet Snippet"
snippet ${1:Trigger} "${2:Description}" ${3:Options}
${0}
`echo endsnippet`
endsnippet

, , - , . , , , , - .

+5

All Articles