目前默认的保存位置是C:\Windows\System32
,这非常不实用。我知道可以使用:cd [directory]
更改当前目录,但是否有任何方法可以在不必一直更改目录的情况下更改新文件的默认保存位置?
我没有使用Windows系统,所以无法找到确切的菜单名称等信息,但是如果我记得正确的话,最简单的方法如下:
属性
,你可以使用 :cd 命令来改变 Vim 的当前工作目录。详情请参见
:help :cd
.
If you want Vim to always start in a particular directory, you can
put the :cd command in your ~/_vimrc file.
If you want Vim to use
the parent directory of the file you are editing as its current
working directory, you can put this setting in your ~/_vimrc file:
.
set autochdir
请参阅
:help 'autochdir'
TEMPDIR
或TMPDIR
,或者切换到Linux! - Basile Starynkevitch