0

当我使用 :mksession mysavedsession 保存我的 vim 会话时,它会保存与我相关的所有内容,除了在通过 Ctrl-6 显示的每个 vim 窗口中打开的交换缓冲区。

有什么简单的解决方案吗?

4

1 回答 1

3

That's <C-^>, not <C-6>.

I don't think that there's such a thing as a "<C-^> state": <C-^> is used to edit the previously edited file but it doesn't have a "hard" value. When you are restoring a session you haven't edited any previous file so it's likely that <C-^> doesn't work. Just like there's no "previous file" if you just started Vim.

A quick look at :help mksession, :help mkview, :help sessionoptions and :help viewoptions doesn't seem to indicate any workaround.

于 2012-10-15T19:36:27.433 回答