On 22/10/08 18:05, F.Pighi wrote:
> Hi, I use
> :mksession! C:\.vimsession
> to save my current session, but I can't find a way to automatically
> save the session when i type :q or close the window (I'm using gvim on
> Windows).
> Is there a way to accomplish this? I've already tried the sessionman
> plugin but the SessionOpenLast command seems not to be working
> properly.

I use the following:

Method I: in any GUI flavour, when closing "only" Vim

        :mks!
        :xa
...and later...
        gvim -S

My 'sessionoptions' is left at its default.

Method II: Only in Gnome2 (i.e. GTK2/Gnome) when using X11 with Gnome or 
KDE window manager:

just do nothing. Shutting down the X session or the computer (both from 
the Gnome or KDE desktop) will be sensed by gvim with Gnome2 gui, which 
will save the session in its own "secret place" and restart it at next X 
startup.


Best regards,
Tony.
-- 
"We don't care.  We don't have to.  We're the Phone Company."


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to