Sunday, February 17, 2019

Re: mksession restore just deleted buffer



On Sun, Feb 17, 2019, 07:36 <nivaemail@gmail.com wrote:
Le samedi 16 février 2019 11:56:37 UTC+1, meine a écrit :
> > Nothing complicated,
> >
> > your advise is coded in the function! geometry#MkSession()
> >   silent! execute 'mks! '.g:geometry#sessionfile
> >
> > And this function is called just before leaving Vim (au VimLeavePre * call geometry#SaveGeometry())
>
> Merci!
>
> //meine


Yes but this code does not work well...

when I list buffers ":buffers", it shows me old buffer that I delete ":bd! NoBu".

Then Leave Vim (so the autocmd does its job), relaunch Vim, the buffers' list contains again previous deleted buffer and a file is create at the original buffer's folder.

So not working.

After the "bd!", does listing buffers again confirm that it's gone?

Have you examined the contents and timestamp of the session file to see if it contains the details of that buffer?

How about disabling the autocommand and manually saving the session?

Anything in your session options or viminfo that might be contributing something?

Salman

--
--
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/d/optout.

No comments: