Lines Matching refs:vim
1 # This file is a minimal clang-format vim-integration. To install:
24 import vim
37 buf = vim.current.buffer
41 lines = '%s:%s' % (vim.current.range.start + 1, vim.current.range.end + 1)
44 cursor = int(vim.eval('line2byte(line("."))+col(".")')) - 2
58 if vim.current.buffer.name:
59 command.extend(['-assume-filename', vim.current.buffer.name])
76 sequence = difflib.SequenceMatcher(None, vim.current.buffer, lines)
79 vim.current.buffer[op[1]:op[2]] = lines[op[3]:op[4]]
80 vim.command('goto %d' % (output['Cursor'] + 1))