28068RE: Open Buffer History
- May 1, 2002
> TryMore specifically, you could try saving and restoring a session on
> :help mks
VimEnter and VimLeave:
au VimLeave * mksession! c:/asdfljkasdflkjahsdf.sess
au VimEnter * so c:/asdfljkasdflkjahsdf.sess
This works, but it isn't pretty and it doesn't account for when you
start vim with a specific file.
I'll leave it to you to figure out which 'sessionoptions' to tweak to
store only window information.
> Brett S.--
> > When I start VIM, I would like it to automatically re-open all of
> > the buffers that were open at the time I exited VIM.
> > For example, if I have buffers file, file2, and file3 open, I would
> > like to be able to do ":q" and when I later restart VIM, I would
> > like file1, file2 and file3 to be automatically reopened.
> > Can anybody offer any advice or tips?
SOLDIER: What? Ridden on a horse?
SOLDIER: You're using coconuts!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Current Product Engineer
- << Previous post in topic