tab after first tab stop dosent do anything (using supertab)

Asked by zeltak

Hi

First of all thank you for this fantastic vim plugin, its quite remarkable.

i use supertab for tab completion. loading the snippet works well and in jumps to the first tab stop perfectly. the problem is that when i press tab again to jump to the second tab stop it just gives me a message (keyword completion...). and does nothing. am i doing something wrong? is it a known issue?

P.s off topic a bit when i have a text with a $ (IE Data$VAR) and i want to have 2 tab stops between the $ is this a correct syntax ($1$$2 ) or do i need to Escape the text

best

Z

Question information

Language:
English Edit question
Status:
Solved
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Solved by:
zeltak
Solved:
Last query:
Last reply:
Revision history for this message
SirVer (sirver) said :
#1

Expanding a snippet with tab is not ambigious: ultisnips assumes you prefer tab expansion before smart completion. Inside a tabstop, the story is not clear. inside a for-loop-snippet you might want to have keyword expanded and not jump forward. Therefore UtliSnips always lets SuperTab do its thing then. Easy solution: make jumping forward explicit with c-j -- the right thing will then happen all the time.

Yes, you have to escape the $ via \$. You could have found this in the docs or tested it investing 30 seconds :).

Revision history for this message
zeltak (zeltak) said :
#2

thx works like a charm :)