如何告诉VIM将viminfo文件存储在别的地方?

前端之家收集整理的这篇文章主要介绍了如何告诉VIM将viminfo文件存储在别的地方?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
是否可以告诉 vim将其 viminfo文件保存在别的地方?
如在.vim文件夹中
尝试将set viminfo = n〜/ .vim / viminfo添加到〜/ .vimrc文件中.来自:help’viminfo’:
n       Name of the viminfo file.  The name must immediately follow
            the 'n'.  Must be the last one!  If the "-i" argument was
            given when starting Vim,that file name overrides the one
            given here with 'viminfo'.  Environment variables are expanded
            when opening the file,not when setting the option.
原文链接:https://www.f2er.com/bash/386371.html

猜你在找的Bash相关文章