Wednesday, April 24, 2013

Re: Undead buffer: gets deleted but respawns on session launch

On 24/04/13 20:56, Sylvia Ganush wrote:
>
> On 23 Apr 2013, at 19:06, Ben Fritz <fritzophrenic@gmail.com> wrote:
>
>> On Tuesday, April 23, 2013 10:41:08 AM UTC-5, Sylvia Ganush wrote:
>>>
>>> What may cause a deleted buffer to reappear on session launch?
>>>
>>
>> Maybe you have the % character in your 'viminfo' option? You said you deleted the buffer, though, so I'd expect it would not be in the saved list. What command did you use to delete the buffer?
>
> Hi Ben.
>
> Here's my 'viminfo' option:
>
> viminfo='100,<50,s10,h,rA:,rB:
>
> No '%' in there. The ghost buffer always has '#h' in front of its name.
>
> To delete the buffer I do:
>
> :bd!
>
> Sylvia
>

#h means a hidden buffer, which is the alternate buffer (i.e. usually
the last buffer you edited before the current one).

Try :bw! instead of :bd! and see if there is a difference. But beware!
:bw forgets *everything* that Vim has in memory concerning that buffer.


Best regards,
Tony.
--
FIGHTING WORDS

Say my love is easy had,
Say I'm bitten raw with pride,
Say I am too often sad --
Still behold me at your side.

Say I'm neither brave nor young,
Say I woo and coddle care,
Say the devil touched my tongue --
Still you have my heart to wear.

But say my verses do not scan,
And I get me another man!
-- Dorothy Parker

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment