d11wtq / ctrlp_bdelete.vim

An extension to ctrlp.vim for deleting open buffers
58 stars 14 forks source link

Certain `buffer` types undeletable. #4

Open amadeus opened 10 years ago

amadeus commented 10 years ago

In this screenshot, the top buffer, which is a Netrw Directory Listing,

https://dl.dropboxusercontent.com/s/zcfmghdwxo9flt7/ControlP_20140604_142943_20140604_142946.png

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.

d11wtq commented 10 years ago

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.

d11wtq commented 10 years ago

That actually seems to be a consequence of switching between the netrw buffer and a normal buffer. It even disappears from :ls in vim.