On 2022-04-25, Lifepillar wrote:
> I am looking into parsing a list of strings with an errorformat to
> create a quicklist or location list out of it. Currently, I am doing it
> as follows:
>
> let efm = "%f:%l:%m"
> let what = getqflist({"lines": ["foo:3:bar"], "efm": efm})
> call set
I am looking into parsing a list of strings with an errorformat to
create a quicklist or location list out of it. Currently, I am doing it
as follows:
let efm = "%f:%l:%m"
let what = getqflist({"lines": ["foo:3:bar"], "efm": efm})
call setloclist(0, what.items)
echo what.items[0]