honza/vim-snippets

Why having snippets tha explicitly use ${0} in the inside of the inserted text, leaving no way to get out of the snippet?

Aster89 opened this issue · 0 comments

I'm specifically referring to HTML snippets, but I guess other language's snippet files are similar.

Take this

snippet b
<b>${0}</b>

If I start this snippet, I have then to go manually normal mode to get out of the tag. Luckily, UltiSnips' snippet take precendence, and it uses the tabstop number 1 instead of 0, which gets defaulted to after-the-snippet:

snippet b "<b>" w
<b>$1</b>
endsnippet

Unfortunately, not all snippets are like that. The snippet for <p>, for instance, uses the 0th tabstop in both collections:

snippet p
<p>${0}</p>

snippet p "paragraph" w
<p>${0:${VISUAL}}</p>
endsnippet

Is it ok if I make a PR for snippets/html.snippets and UltiSnips/html.snippets change all those 0s to 1s?