diff --git a/pythonx/UltiSnips/snippet_manager.py b/pythonx/UltiSnips/snippet_manager.py index d6bdd50..c90bde8 100644 --- a/pythonx/UltiSnips/snippet_manager.py +++ b/pythonx/UltiSnips/snippet_manager.py @@ -336,6 +336,8 @@ class SnippetManager(object): def _setup_inner_state(self): """Map keys and create autocommands that should only be defined when a snippet is active.""" + if self._inner_state_up: + return if self.expand_trigger != self.forward_trigger: _vim.command('inoremap ' + self.forward_trigger + ' =UltiSnips#JumpForwards()')