Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(33)  |  Call(33)  |  Derive(0)  |  Import(0)

src/u/l/ultisnips-HEAD/pythonx/UltiSnips/snippet_manager.py   ultisnips(Download)
def _ask_user(a, formatted):
    """Asks the user using inputlist() and returns the selected element or
    None."""
    try:
        rv = _vim.eval("inputlist(%s)" % _vim.escape(formatted))
            self._unmap_inner_keys()
        self._vstate.remember_position()
        if _vim.eval("mode()") not in 'in':
            return
 
        mode = "n"
        if not self._supertab_keys:
            if _vim.eval("exists('g:SuperTabMappingForward')") != "0":
                self._supertab_keys = (
                    _vim.eval("g:SuperTabMappingForward"),
                    _vim.eval("g:SuperTabMappingBackward"),

src/u/l/ultisnips-HEAD/pythonx/UltiSnips/vim_state.py   ultisnips(Download)
    def __init__(self):
        pos = _vim.buf.cursor
        self._mode = _vim.eval("mode()")
        Position.__init__(self, pos.line, pos.col)
 
        been overwritten. We will not cash that then."""
        self._unnamed_reg_cached = True
        unnamed_reg = _vim.eval('@"')
        if unnamed_reg != self._text_to_expect:
            self._unnamed_reg_cache = unnamed_reg
    def conserve(self):
        """Save the last visual selection ond the mode it was made in."""
        sl, sbyte = map(int,
                (_vim.eval("""line("'<")"""), _vim.eval("""col("'<")""")))
        el, ebyte = map(int,
                (_vim.eval("""line("'>")"""), _vim.eval("""col("'>")""")))

src/u/l/ultisnips-HEAD/pythonx/UltiSnips/snippet/source/file/ultisnips.py   ultisnips(Download)
def find_all_snippet_files(ft):
    """Returns all snippet files matching 'ft' in the given runtime path
    directory."""
    if _vim.eval("exists('b:UltiSnipsSnippetDirectories')") == "1":
        snippet_dirs = _vim.eval("b:UltiSnipsSnippetDirectories")
    else:
        snippet_dirs = _vim.eval("g:UltiSnipsSnippetDirectories")

src/u/l/ultisnips-HEAD/pythonx/UltiSnips/snippet/source/file/_base.py   ultisnips(Download)
            if event == "error":
                msg, line_index = data
                filename = _vim.eval("""fnamemodify(%s, ":~:.")""" %
                        _vim.escape(filename))
                raise SnippetSyntaxError(filename, line_index, msg)

src/u/l/ultisnips-HEAD/pythonx/UltiSnips/text_objects/_python_code.py   ultisnips(Download)
    def fn(self):  # pylint:disable=no-self-use,invalid-name
        """The filename."""
        return _vim.eval('expand("%:t")') or ""
 
    @property
    def basename(self):  # pylint:disable=no-self-use
        """The filename without extension."""
        return _vim.eval('expand("%:t:r")') or ""
    def opt(self, option, default=None):  # pylint:disable=no-self-use
        """Gets a Vim variable."""
        if _vim.eval("exists('%s')" % option) == "1":
            try:
                return _vim.eval(option)
    def _update(self, done):
        path = _vim.eval('expand("%")') or ""
        ct = self.current_text
        self._locals.update({
            't': _Tabs(self._parent),

src/u/l/ultisnips-HEAD/pythonx/UltiSnips/_diff.py   ultisnips(Download)
            return True, es
    if ppos.mode == 'v': # Maybe selectmode?
        sv = list(map(int, _vim.eval("""getpos("'<")""")))
        sv = Position(sv[1]-1, sv[2]-1)
        ev = list(map(int, _vim.eval("""getpos("'>")""")))
        ev = Position(ev[1]-1, ev[2]-1)
        if "exclusive" in _vim.eval("&selection"):

src/u/l/ultisnips-HEAD/pythonx/UltiSnips/indent_util.py   ultisnips(Download)
    def reset(self):
        """ Gets the spacing properties from Vim. """
        self.shiftwidth = int(_vim.eval("&shiftwidth"))
        self._expandtab = (_vim.eval("&expandtab") == "1")
        self._tabstop = int(_vim.eval("&tabstop"))

src/u/l/ultisnips-HEAD/pythonx/UltiSnips/snippet/definition/_base.py   ultisnips(Download)
                boundary_chars = escape(words_prefix[-1:] + \
                        words_suffix[:1], r'\"')
                match = _vim.eval('"%s" =~# "\\\\v.<."' % boundary_chars) != '0'
        elif "i" in self._opts:
            match = words.endswith(self._trigger)
            qwords = escape(words, r'\"')
            words_suffix = _vim.eval(
                    'substitute("%s", "\\\\v^.+<(.+)", "\\\\1", "")' % qwords)
            match = self._trigger.startswith(words_suffix)
            self._matched = words_suffix