sar*_*old 22
尝试添加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.
Run Code Online (Sandbox Code Playgroud)
小智 5
set viminfo='1000,nc:\\users\\abcdef\\_viminfo
Run Code Online (Sandbox Code Playgroud)
这适用于Windows 7.