vim - 在 vim 中,有没有办法在 session 之间保存书签?

标签 vim configuration

退出vim然后重新进入时,所有书签都消失了

已经找到了如何记住文件之间的最后位置,但没有找到退出后如何记住书签。

有没有办法配置vim以便记住文件的书签?

最佳答案

是的。将以下内容添加到您的 .vimrc :

:set viminfo='1000,f1

但请注意:

Lowercase marks 'a to 'z are remembered as long as the file remains in the buffer list. If you remove the file from the buffer list, all its marks are lost. If you delete a line that contains a mark, that mark is erased.



所以你需要使用大写或数字标记。

看:
  • :he 21.3
  • :he E20

  • ...想要查询更多的信息。

    您还可以找到 :mksession 如果您想保存 session 状态,则很有用。

    关于vim - 在 vim 中,有没有办法在 session 之间保存书签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8958047/

    相关文章:

    vim - 如何在 VimScript 中显示动画进度条和动画命令行?

    hadoop - Hadoop不使用配置文件?

    database - icCube - 同步刷新数据源表[固定周期]

    apache - 哪些是删除密码的命令?

    vim - 搜索时执行文件的 "skip bottom, jump to the top"

    php - 如何让 vim omnicompletion 支持 php 类方法使用::

    java - 如何为我的 NetBeans 模块 Maven 设置集群

    c# - 自定义 ConfigurationElement 中的 ConfigurationProperty 出现意外的 RegexStringValidator 失败

    ruby-on-rails-3 - 如何配置 vim + ctags 以识别 rails ActiveRecord 范围定义?

    vim - vimgrep 和 make 的不同快速修复缓冲区