Lines Matching refs:vim
24 import vim
29 if vim.eval('exists("g:clang_format_path")') == "1":
30 binary = vim.eval('g:clang_format_path')
37 if vim.eval('exists("g:clang_format_fallback_style")') == "1":
38 fallback_style = vim.eval('g:clang_format_fallback_style')
42 buf = vim.current.buffer
46 lines = '%s:%s' % (vim.current.range.start + 1, vim.current.range.end + 1)
49 cursor = int(vim.eval('line2byte(line("."))+col(".")')) - 2
65 if vim.current.buffer.name:
66 command.extend(['-assume-filename', vim.current.buffer.name])
83 sequence = difflib.SequenceMatcher(None, vim.current.buffer, lines)
86 vim.current.buffer[op[1]:op[2]] = lines[op[3]:op[4]]
87 vim.command('goto %d' % (output['Cursor'] + 1))