On Tuesday, April 23, 2013 10:41:08 AM UTC-5, Sylvia Ganush wrote:
> Good day.
>
>
>
> What may cause a deleted buffer to reappear on session launch?
>
>
>
> I once edited a file, a Figlet font. I deleted the buffer, and
>
> then exited Vim as I usually do:
>
>
>
> :mksession! session.vim
>
> :wqa
>
>
>
> But when restart the session the deleted buffer is still present on the
>
> :ls list. The buffer itself is empty. A 'ghost', if you wish.
>
>
>
> What gives?
>
:help :mksession says:
7. Reloads the buffer list, with the last cursor positions. If
'sessionoptions' contains "buffers" then all buffers are restored,
including hidden and unloaded buffers. Otherwise only buffers in windows
are restored.
So, after reading Tony's response, I expect you could solve this either by removing 'buffers' from your sessionoptions, or by using :bwipe instead of :bd to delete the buffer.
--
--
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.
Wednesday, April 24, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment