Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude quickfix buffer from `:bnext` `:bprevious`

Tags:

vim

The quickfix buffer (opened with :cope after a :make for instance) is included in the :bnext :bprevious navigation which I use very frequently (having mapped it to the arrow keys). I never want to navigate to the quickfix buffer that way however. Is there a good way to exclude it?

like image 874
kasbah Avatar asked Feb 19 '15 17:02

kasbah


1 Answers

Here is a simple solution:

augroup qf
    autocmd!
    autocmd FileType qf set nobuflisted
augroup END

See :help 'buflisted'.

like image 150
romainl Avatar answered Sep 30 '22 00:09

romainl