gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 01:04:28 26 4
gpt4 key购买 nike

退出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/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com