退出/重新启动VIM时,如何自动保存和加载临时缓冲区?

发布于 2025-02-07 13:22:48 字数 211 浏览 2 评论 0原文

我现在使用Notepad ++一段时间以进行注意,并且非常喜欢您可以打开20个选项卡而无需保存文件的功能,并且它们会自动持续。因此,当您需要记下一些笔记时,您只需打开一个新标签,写笔记并关闭应用程序。稍后,当您打开它时,它将在那里,自动从临时文件中保存并加载。

有没有办法通过插件或设置在VIM中以某种方式模仿相同的行为?

我仔细研究了这些选项,但还没有看到有关此用例的具体内容。

I'm using Notepad++ for a while now for note taking and really like the feature that you can have 20 tabs open without having to save the files and they are persisted automatically. So when you need to take some notes you just open a new tab, write the notes, and close the app. Later when you open it up it will be there, saved and loaded from a temp file automatically.

Is there a way to somehow emulate the same behaviour in Vim with a plugin or setting?

I've perused through the options but haven't seen anything specific about this use case.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文