s*****w 发帖数: 1527 | 1 i'm using vim in windows,
it always points to $HOMEDRIVE for _viminfo,
i've set it to be c: in the control panel/environment settings,
but after reboot, $HOMEDRIVE is still U: which was a network drive.
any hints ? | N****w 发帖数: 21578 | 2 it's your Windows that set it.
你们公司的机器 logon 后用户 HOME 存在网络盘上吧
【在 s*****w 的大作中提到】 : i'm using vim in windows, : it always points to $HOMEDRIVE for _viminfo, : i've set it to be c: in the control panel/environment settings, : but after reboot, $HOMEDRIVE is still U: which was a network drive. : any hints ?
| p****o 发帖数: 1340 | 3 估计是系统设置的问题,不过你可以这样:
autocmd VimEnter rviminfo \path\to\_viminfo
autocmd VimLeave wviminfo \path\to\_viminfo
可能rviminfo需要写成"rviminfo!",你自己试一试吧。 |
|