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 (
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
quickfix window open, my keyboard shortcuts just "do the right thing"? I want to map
:cprev, depending on the context of the window.