dot-files/vim/.vim/ftplugin/qf.vim
Bruno BELANYI 809a348490 [ADD][VIM] Mappings to navigate quickfix history
It also supports navigating the location list history when inside a
location list.

The autoload plug-in idea was taken from this Vimways article:
<https://vimways.org/2018/colder-quickfix-lists/>
2019-10-19 05:46:29 +02:00

8 lines
397 B
VimL

" Use h/l to go to the previous/next non-empty quickfix or location list
nnoremap <silent> <buffer> h :call quickfixed#older()<CR>
nnoremap <silent> <buffer> l :call quickfixed#newer()<CR>
" Use left/right to go to the previous/next non-empty quickfix or location list
nnoremap <silent> <buffer> <Left> :call quickfixed#older()<CR>
nnoremap <silent> <buffer> <Right> :call quickfixed#newer()<CR>