jeetsukumaran / vim-buffergator

Vim plugin to list, select and switch between buffers.
498 stars 49 forks source link

Issue with vimshell #30

Open imain opened 10 years ago

imain commented 10 years ago

Really liking buffergator but I'm running into an issue when using it with vimshell. In my config I use:

let g:buffergator_autodismiss_on_select = 0 let g:buffergator_autoupdate = 1

If I have buffergator open in the current tab and use :VimShellTab to open a new vimshell I get:

Error detected while processing function buffergator#UpdateBuffergator: line 41: E499: Empty file name for '%' or '#', only works with ":p:h": split

and then vimshell fails to work.. it's just an empty buffer.

jeetsukumaran commented 10 years ago

I suspect the problem is that the buffer opened by vimshell is listed yet unnamed (Buffergator ignores all unlisted buffers). Before trying to fix this, though, could you confirm that you are using the latest revision of Buffergator? The line in your error message does not seem to map to a line of a code that could result in that error in the current revision.

imain commented 10 years ago

Hrrm, that's strange.. I do indeed have the latest. I had just started using it when I had that issue and I just verified a git pull is up-to-date. I do think it's because of vimshell being unnamed. I notice it only fails when I start vimshell in a new tab.

jeetsukumaran commented 10 years ago

Ok, this is strange interaction that is difficult to troubleshoot because I do not normally use VimShell. For now, I have hacked in a fix where I simply trap and ignore the error. Let me know if it works.