-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"E37: Buffer would be deleted" from startify #221
Comments
what does startify set 'bufhidden' to? |
|
I suppose |
Ah ... I thought of a problem with this solution regarding startify specifically: startify by default presents a list of up to 10 recent files, and maps the numbers 0-9 to open those files. Meaning that |
I'm going to resolve this in my config with this mapping: nnoremap <silent> - :bwipe <Bar> Dirvish<CR> I don't know whether it's something you want to follow up here, or whether it's more of a startify issue, or just an unusual edge case for users to work around. Feel free to close. |
Let's see how common this is. The condition added in 7e41cd7 was somewhat hopeful. |
I just updated my dirvish, it's been awhile, but I'm encountering this as well when trying to navigate files with "-" to move up a directory. Is there anymore info about this? I tried out what @nickspoons suggested but that's not working for me. |
which files...? It certainly shouldn't happen for normal files.
Because the mapping there was buffer-local. I've updated the comment, try again. |
@justinmk I just tried the updated comment, unfortunately it's still happening. This is happening while navigating through JS files. If I'm in a file, when I press |
@blkwtkns well, what does If you actually want 'bufhidden' behavior for all of your buffers, just set 'hidden' ... |
So the output of |
I figured some workaround in my configs, I had the following setup, and just commenting the
With this, output for |
No.
Why do you want this? Dirvish depends on Vim to remember the cursor position for visited Dirvish buffers, and other state. Wiping the buffer will break those Dirvish features. |
My rationale behind wiping the Buffer on |
The latest commit 7e41cd7 causes the
E37: Buffer would be deleted
error to be displayed when using-
or:Dirvish
from a vim-startify window.Of course there is a simple workaround to open vim with
vim .
instead of justvim
followed by-
, but that won't help when opening startify manually from a vim session etc.I'm not sure what the best solution is, whether some plugin/buffer types should be whitelisted, or whether the latest commit should have applied more specifically to git commits, or if a user-defined buffer variable should be introduced to bypass the error, e.g.
au FileType startify let b:dirvish_allow_close = 1
The text was updated successfully, but these errors were encountered: