Rena and Terry Cohen wrote:
> Thank you for your help.
> I'm now setting 'vi' in vimrc, and that helps.
> What I'd like to be able to do is preserve my bufferlist, and also use a
> session (to restore things like my 'cd'). Is there any way to this?
I do not think there is an easy way to do this. You could edit the
session file (after creating it or before sourcing it) so that it does not get
rid of the buffers that are already there. You could also save the buffer list
in a variable, source the session file, and then restore the buffers. Either of
these ideas could be automated, but it would take some work.
> I also tried launching gvim without a session, and it still seems to
> unload (or never load) all buffers specified in viminfo. I'm launching
> C:\Vim\vim62\gvim.exe -u %VIM_USER%\_vimrc -i %VIM_USER%\viminfo
> and I now have
> set viminfo='20,"50,h,rA:,rB:,%
> in my _vimrc.
That should work. Exactly what is the output of the test I described
below? (And what is the buffer list before quitting the previous session?)
> It would be great if I could learn how to do this.
> Thanks again,
> Terrance Cohen.
> Benji Fisher wrote:
>> The usual way to set 'vi' is by adding a line to your vimrc
>> file. Try doing this and then
>> :so session.vim
>> Do you get the expected behavior?
HTH --Benji Fisher