On Wed, 6 Sep 2006, A.J.Mechelynck wrote:
>
> The viminfo file holds mark positions for a finite number of files. How many
>
Yes, that's what I suspected.
> After "vim -S vimbook.vim" I don't think it will be updated at exit, UNLESS
> you add the following to your vimrc:
>
> :au VimLeave *
> \ if exists("v:this_session")
> \ && v:this_session != ""
> \ | exe "mksession" v:this_session
> \ | endif
>
Not quite satisfactory... I wanted to save a session file only for the
text files read via the script I mentioned (and they don't have a
particular filetype). What would be really handy is a feature like the
-c flag, but to execute a command at the _end_ of the session. I don't
suppose there is such a feature, at least I couldn't find it in vim's
unix man page.
On the other hand... Could the above script (":au...") be modified to be
executed only if some variable was set? I mean, some variable that could
be set at start time via -c ? That would allow to filter out files not
read via the script...
(Sorry if this is trivial, but I'm not a _real_ programmer!)
Thanks,
Jorge