I use ALE for finding syntax errors in code in vim, which populates the loclist with any errors found. However, when I first open a file with errors, which populates that list (I have
g:ale_lint_on_enter set to
1), no error is highlighted. I like to move between errors using
:lprevious (in fact I have them bound to keys), but neither will move to the first error! I have to do this with
:lfirst. Only then will
:lprevious move between the errors in this file.
How can I make
:lprevious do this automatically so I don't have to use
:lfirst first to get going?
(To be clear, I don't think this is anything specific to ALE, I think it's anything that populates the loclist. The same behaviour may also occur for the quickfix list, I haven't checked.)