def showpos(response): try: linenu = int(response.msg) except: return vim.current.window.cursor = ( linenu, 0 ) vim.command("normal zt") pyvim.redraw() pyvim.echoline(response.msg)
def showfile(response): filepath = response.msg vim.command("silent edit %s" % filepath) pyvim.redraw() pyvim.echoline(filepath)