Bill McCarthy wrote:
> When I open a session created by mksession, a [No Name]
> buffer is created for each tab that is created. My
> 'sessionoptions' contains all the options except sesdir,
> slash and unix. I checked buffers with 'ls!' before saving
> the session. I startup with:
>
> gvim -S session_file_name.vim
>
> In the session file, each tab is created and filled with
>
> tabnew
> edit file
>
> Trying that same sequence in a .vim file like this
>
> edit file 1
> tabnew
> edit file 2
> tabnew
> edit file 3
> tabnew
> edit file 4
>
> And then sourcing it with:
>
> gvim "+so myfile.vim"
> or
> gvim -S myfile.vim
>
> does not generate any [No Name] files in ls!. It generates
> 3 of those files when I save that session and load it later.
>
> I am running gvim 7.0.136 on Windows XP Pro with all
> updates.
This happens when the edited file already is in the buffer list.
I'll fix it by using "tabedit" instead of "tabnew | edit".
--
hundred-and-one symptoms of being an internet addict:
91. It's Saturday afternoon in the middle of May and you
are on computer.
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///