Not able to get inword/word boundary insertion working
I have some snippets that insert simple erb (embedded Ruby) tags into HTML files. If I try to insert one of these tags immediately following another HTML tag, I'd like it to expand the snippet even without any whitespace.
My understanding is that a snippet like the following should expand no matter what's in front of it:
snippet erb i
<% ${1:code} %>
And that a snippet like the following should expand if there is a ">" in front of it, but not a word character:
snippet erb w
<% ${1:code} %>
But that's not happening. I'm running Ultisnips in the fairly common use case of YCM/Supertab; it seems relevant that these erb snippets ARE showing up as candidates for expansion, but then when one of them is selected and I tab to select it for expansion, I just go to the next candidate in the popup menu.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- UltiSnips Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Matt for more information if necessary.