On Nov 24, 10:39 am, Lev Lvovsky <[email protected]> wrote:
> I'd like to run an ':mksession!' on a regular basis (automatically) -
> is there a generic timer function which I can wrap around that command
> (running it ever hour for example)?
You could accomplish this by using reltime() within a function tied to
the CursorHold autocommand.
:help CursorHold
:help reltime()
I.e., whenever you haven't pressed a key in 'updatetime' milliseconds,
your function could use reltime() to see whether enough time has
elapsed since the last time you ran mksession.
Brett Stahlman
>
> thanks,
> -lev
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---