I've got a pretty large log file with some info interleaved with some errors / warnings and I would like to go to the next error in my quickfix window but without jumping to that location in the code.
At the moment I've got a dirty hack that basically consist in doing :cnext <C-o>
but that's not ideal.
Any cleaner alternative ?
I was thinking about something with getqflist
and setqflist
to get the current position and increment it, but I have only managed to go to the next line in the log (Which might just be plain text), whereas I want the next error. (So I probably need to iterate over the valid entries in the quickfix window but I haven't figured out how to do that yet)