Always expand the first candidate.

Asked by Mohd S. Khoeini

I was previously using vim-snipmate with honza/vim-snippets set of snippets.

Now that I have switched to UltiSnip I wonder if I should continue using it, since it has UltiSnips snippets as well.
But in case if the answer is yes, a subtle problem arises. A lot of snippets end up being defined two times.
So for most of the useful snippets you will be presented with a choice between two identical snippets, and that really
restricts usefulness of the snippet.

But since this problem is not just about vim-snippets but also including any third party snippets sets that might have a huge
set of those snippets redefined, then it seems to me the resolution is not just avoiding redefinition of snippets.

Now my question is, is there any solution to this problem? For example, letting the first candidate to automatically expand.

Question information

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

For now, use the ultisnips shipped ones. If I find ever time to add the necessary changes to UltiSnips, I will move over to share the vim-snippets.

My personal suggestion is right now to copy & paste the snippets from where you like them into your private repo - snippets are very personal and are more useful if you personalize them.

Revision history for this message
Mohd S. Khoeini (mskco-tp) said :
#2

Thanks SirVer, that solved my question.