ctrlp_bdelete.vim
ctrlp_bdelete.vim copied to clipboard
Certain `buffer` types undeletable.
In this screenshot, the top buffer, which is a Netrw Directory Listing,

Cannot be deleted using Ctrl + @. In another weird twist... CtrlP seems unusable when viewing these Netrw directories as well, perhaps it is a CtrlP issue.
Interestingly I can't get ctrlp to display netrw listings at all. Are you just doing something along the lines of:
# open multiple buffers
:e some/directory
# switch to some other buffer
:CtrlPBuffer
?
I can switch between a netrw and a normal buffer using :b #, but :CtrlPBuffer refuses to even show them. I wonder if we're on different CtrlP versions.
I'm at commit b5d3fe66a58a13d2ff8b6391f4387608496a030f, which seems to be the most recent commit. I haven't configured ctrlp beyond let g:ctrlp_show_hidden = 1 and I have no plugins installed that use ctrlp, other than this one.
That actually seems to be a consequence of switching between the netrw buffer and a normal buffer. It even disappears from :ls in vim.