Monday, August 4, 2025

Re: getpos()

You can call Comment withing <cmd>

vim9script
def g:Comment(m: string)
    if m == 'v'
        var l1 = line("'<")
        append(l1 - 1, ["assert(0);", "#if 0"])
        var l2 = line("'>")
        append(l2, ["

No comments: