Example #1
0
def error_vim(vim: Nvim, msg: str) -> None:
    throwpoint = vim.eval('v:throwpoint')
    if throwpoint != '':
        error(vim, 'v:throwpoint = ' + throwpoint)
    exception = vim.eval('v:exception')
    if exception != '':
        error(vim, 'v:exception = ' + exception)
    error_tb(vim, msg)
Example #2
0
 def __init__(self, vim: Nvim) -> None:
     self._vim = vim
     self._sign_offset = int(vim.eval("get(g:, 'coveragepy_sign_offset', 5000000)"))
     self._lines_with_problems: Dict[str, Set[int]] = {}
Example #3
0
def _yank(vim: Nvim, word: str) -> None:
    vim.call('setreg', '"', word, 'v')
    if vim.call('has', 'clipboard'):
        vim.call('setreg', vim.eval('v:register'), word, 'v')
Example #4
0
 def __init__(self, vim: Nvim):
     if vim.eval("has('nvim-0.4.2') || (v:version >= 801 && has('patch614'))"):
         self.editor = Editor(vim)
     else:
         self.editor = OldVim(vim)
     self._coverage = None