I use vim mainly for latex. The main reason why I do it is actually Ultisnips, which greatly reduces the number of symbols that I need to type in latex. Alongside it, I use auto-pairs, which matches brackets for me. One small gripe that I have with this setup is that I cannot use tab in order to both expand a snippet and jump outside of a pair of brackets - the relevant options are:
let g:UltiSnipsExpandTrigger = '<tab>'
let g:UltisnipsJumpForwardTrigger = '<tab>'
let g:AutoPairsShortcutJump = '<tab>'
The behavior that I would like is to expand a snippet if one is available, otherwise jump out of the bracket. But that does not work by default. Is there anything I can do, like some kind of conditional key mapping?
I have tried other solutions, like implementing bracket matching in Ultisnips for example, but never with satisfactory results.
Yes, I could simply use another key, but using tab for both would be the most convenient.