pressing Tab on nondefined snippets, return carret one position to the left

Asked by branquito

when I press <Tab>, utilsnip expands snippet if it is in definitions, like for example div.

but when typing for example html, nothing happens, and carret goes one char to the left, so in this case beneath the letter l of html. instead, shouldnt it stay where it is. maybe if conflicts wiht sparkup or supertab plugins? what can I do to fix this? thank you!

Question information

Language:
English Edit question
Status:
Answered
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
branquito (brankompas) said :
#1

also, now i tried.. supertab isnt completing anything, for example when i type bra and i had earlier in the buffer branchito, it should complete to branchito but it does nothing.. except going one position left as I already explained earlier.

then, to see which function gets called, when I hit <Tab> and hold it, in command line appears
:call <SNR>88_SparkupNext()

maybe this will help diagnosing what's going on.

Revision history for this message
SirVer (sirver) said :
#2

As you can see, Sparkup has snatched the TAB key. UltiSnips has support for Supertab, so If you make sure that after/UltiSnips.vim is run as the very last script, you will have support for UltiSnips and SuperTab.

I cannot comment on the sparkup issue. I do not use/know this plugin and I can't say why it needs the tab key. Alternatively, you can remap the key to use to expand UltiSnips snippets. And otherwise you should contact the sparkup author.

Can you help with this problem?

Provide an answer of your own, or ask branquito for more information if necessary.

To post a message you must log in.