Charles Campbell wrote: > 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 suggest using an autocmd; so > > :help autocmd > :help VimLeave
I am speaking out of ignorance here, but wondering...will that work? Or will the autocommand fire after all the windows you had open (perhaps except one?) have closed and thereby not save what you want anyway? There is :help gnome-session which I think pretty much does what you want, but obviously only on gnome. But that might be another starting point for exploration. Cheers, Ben. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---