It is often the case that I am in projects with varying filetypes. Sometimes I'm compiling using :make<CR>
and sometimes I'm using plugins like ALE. At any given time, I probably only have one helper window (location-list
or quickfix
) at the bottom of my window. However, different tools choose to use either output window mapping. This annoys me, since my brain can only focus on one set of errors at a time anyway.
How can I make it so that regardless of whether I happen to have the location-list
or quickfix
window open, my keyboard shortcuts just "do the right thing"? I want to map <F10>
to :lnext
or :cnext
and <F9>
to :lprev
or :cprev
, depending on the context of the window.