In _vimrc sessionoptions are defined as is :
set sessionoptions=help,winsize,winpos,buffers
I have two buffers in buffers' list and after buffer deleting the second one, restarting vim, it is always in the buffers's list.
I don't understand why it appears again.
Thank you
NiVa
Le dimanche 17 février 2019 14:52:20 UTC+1, Salman Halim a écrit :
> After the "bd!", does listing buffers again confirm that it's gone?
>
no.
>
> Have you examined the contents and timestamp of the session file to see if it contains the details of that buffer?
>
timestamp is good at vim leaving and it contains infos of that buffer :
let SessionLoad = 1
if &cp | set nocp | endif
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
let v:this_session=expand("<sfile>:p")
silent only
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
set shortmess=aoO
argglobal
%argdel
$argadd ~/Desktop/thatbuffer.txt
winpos 278 74
>
> How about disabling the autocommand and manually saving the session?
>
I don't want to lose interest of autocmd but I can try.
>
> Anything in your session options or viminfo that might be contributing something?
>
just classical set sessionoptions=help,winsize,winpos
--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/DuaO_Sj9hg4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> 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
--
--
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+u...@googlegroups.com.
Can you confirm this first?
Windows 10 gvim 8.1.952