Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm wondering if it possible to have a snippet with several names. For example a snipped for a title which can be expanded using title and ti. Of course it would be possible to add it twice, for each name once, but that's not what I'm looking for.

share|improve this question
1  
I don't think so. You can have multiple snippets with the same trigger but not multiple triggers for one snippet. Maybe it's possible in UltiSnips? –  romainl Nov 14 '12 at 9:40
add comment

1 Answer 1

Though most snippets are defined in snippets/<filetype>.snippets files, they can also be defined in separate files snippets/<filetype>/<trigger>.snippet. If you use that, you can use filesystem (hard or symbolic, junctions on Windows) links to have two files title.snippet and ti.snippet with identical contents.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.