'Try to expand a snippet at the current position.'

@err_to_scratch_buffer.wrap
def expand(self):

    _vim.command('let    g:ulti_expand_res    =    1')
    if (not self._try_expand()):
        _vim.command('let    g:ulti_expand_res    =    0')
        self._handle_failure(self.expand_trigger)
