thank you, I got it.
In Unix like system, it's not a question. But I use Gvim in Windows frequently,
I want to restore the session(created by command :mksession) when I
double click a text file.

2009/4/30 Ben Fritz <[email protected]>:
>
>
>
> 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
> >
>



-- 
---- 可移植文档格式 ------------

PDF 格式是数字化文档事实上的工业标准,它可以将文字、
字型、格式、颜色及独立于设备和分辨率的图形图像等封装在
一个文件中。

该格式文件还可以包含超文本链接、声音和影像等信息,支持特长
文件。PDF 格式使用了工业标准的压缩算法,易于传输与储存。

PDF 格式的文档具有纸版书的质感和阅读效果,能"逼真"展现书
的原貌,显示大小可任意调节,完全不依赖操作系统的语言和
字体及显示设备。

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

Reply via email to