I'd like to be able to define my own functions that add certain kinds of line to the quickfix list, or set it to those in its entirety, without having to go via the filesystem with a made-up errorfile
format that I tell vim how to parse (errorfmt
).
I've seen setqflist
and getqflist
, but the only other questions or discussion I've seen about this has been people wanting to remove entries, and so the answer ends up being filter
- which doesn't tell me how to format an entry if I want to add one.
So, if I'm to call setqflist(my_errs)
, how should I define my_errs
?