On Apr 30, 12:54 am, GNU-redspider <[email protected]> wrote:
> I want to restore the session with modeline, how to do it.
If by "session" you mean the result of a :mksession command in Vim,
you can't. That's not what modelines are for. Session files created
with :mksession are Vim scripts, and allowing modelines to source
arbitrary Vim scripts would be a gaping security hole.
You can load sessions from within Vim using the :source command, or
you can load it from the command line with vim -S /path/to/session/
script.vim
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---