1

I know that by default ultisnips snippet are triggered when the TABkey is pressed. I also know that this trigger key can be changed. However, can a snippet be triggered automatically when certain keys are typed. For example, suppose I have the snippet

snippet mt "Enter math env"
$ $1 $ $0
endsnippet

I can trigger this by typing m t TAB. But can I have this trigger automatically when I type m t, and how can I do that?

Thank you.

Curious2learn
  • 31,692
  • 43
  • 108
  • 125
  • 1
    The problem with this idea is that now you have to escape any occurrence of `mt` inside a word. Then you say, "okay, it has to be a separate word (mt doesn't exist as such), but now you have to conclude this with Space, and you've won nothing. – Ingo Karkat Nov 14 '14 at 20:32
  • I am not worried about that. I plan to choose key combinations that do not occur together in words. – Curious2learn Nov 15 '14 at 05:59

0 Answers0