UltiSnips not starting correctly

I am using UltiSnips.

http://www.vim.org/scripts/script.php?script_id=2715

Everything works. Say when I type st<tab> , it inserts submit_tagโ€ฆ But if st<tab> is between other characters, this will not work.

For example: foost<tab>bar

Anyway, to fix it?

+4
source share
1 answer

I am the author of Ultisnips. This is hardly a place to ask specific UltiSnips questions because we will not see them. Next time, use the specific question / answer site that hosts the plugin: https://answers.launchpad.net/ultisnips

However, the function you are looking for is called a word extension. Use it like this:

 snippet st "My cool st snippet" w stollen endsnippet 

"w" will make sure your fragment expands in other words.

+20
source

All Articles