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
vim-snippets/snippets/html.snippets
Lines 179 to 180 in faaa499
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:
vim-snippets/UltiSnips/html.snippets
Lines 90 to 92 in faaa499
Unfortunately, not all snippets are like that. The snippet for <p>
, for instance, uses the 0th tabstop in both collections:
vim-snippets/snippets/html.snippets
Lines 682 to 683 in faaa499
vim-snippets/UltiSnips/html.snippets
Lines 388 to 390 in faaa499
Is it ok if I make a PR for snippets/html.snippets
and UltiSnips/html.snippets
change all those 0
s to 1
s?