> > > Okay I've done some further tests. > > > > :bufdo! bd! >> clear all buffers as you said. > > > > Yesterday I had copied my session.vim file into ~/desktop so it seems it > take care about history actions. > > > > When I close Vim, no buffer is listed in buffers'list. > > When I open Vim again, buffers'list contains my yesterday > ~/desktop/sessions.vim which is not exsiting anymore. > > > > ... see the gif. > > https://drive.google.com/open?id=1xPX4InUKhYEVrBuosfHqNk_SNRXY7PgT >
1. Out of curiosity, what are the values of g:geometry#sessionfile and g:geometry#file? 2. Have you tried writing a separate session file out by hand right after doing the bufdo! bd! to see if it that session file contains anything different than the automatically generated one? 3. Have you tried using bufwipe instead of bufdelete? bufdo! bw! (That's "stronger" than deleting a buffer.) 4. The list of buffers is controlled through viminfo, not just sessions. What's the timestamp of your viminfo? Is it getting updated every time you quit? What are its contents? Could the buffer be coming back through that file? Here's the thing: I don't have the autocommands that you do. I also cannot reproduce what you're seeing. I remove all my buffers, write out the session file with an empty Vim (by hand), quit and come back. The first thing I do is execute ':buffers' to confirm it's still empty and then load the session file. My second call to :buffers is STILL empty. I also have no buffers or args in my session file. -- Salman I, too, shall something make and glory in the making. -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.