c4ee3ecf10
It can be useful to set up mappings that apply only during expansion of a snippet. UltiSnips does this internally with the `_setup_inner_state` and `_teardown_inner_state` methods. This commit adds some `User` autocommands so that users of UltiSnips can set up their own mappings and tear them down at the same time as `_setup_inner_state` and `_teardown_inner_state`. This is particularly useful for people who are writing their own expansion and jump functions using `UltiSnips#JumpForwards` and `UltiSnips#ExpandSnippet()` and friends. Here's an example from my own dotfiles: - |
||
---|---|---|
.. | ||
demo.gif | ||
UltiSnips.txt |