Beispiel #1
0
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)
Beispiel #2
0
def showfile(response):
    filepath = response.msg
    vim.command("silent edit %s" % filepath)
    pyvim.redraw()
    pyvim.echoline(filepath)