如何让Vim在当前目录中使用本地拼写文件?

如何让Vim在当前目录中使用本地拼写文件?,vim,spell-checking,spelling,Vim,Spell Checking,Spelling,我不知道Vim可以做拼写检查,它可以修改~/.Vim中的拼写文件,以保持单词标记完好 我想将一个“本地”拼写文件保存在与我正在编辑的文件相同的目录中,这样,如果我在不同的目录中编辑不同的文件,就会使用不同的拼写文件 如何设置Vim来执行此操作?Vim自己的帮助在这里很有用: :help spellfile 更详细的资料: 因此: 嗯 Name of the word list file where words are added for the zg and zw comm

我不知道Vim可以做拼写检查,它可以修改~/.Vim中的拼写文件,以保持单词标记完好

我想将一个“本地”拼写文件保存在与我正在编辑的文件相同的目录中,这样,如果我在不同的目录中编辑不同的文件,就会使用不同的拼写文件


如何设置Vim来执行此操作?

Vim自己的帮助在这里很有用:

:help spellfile
更详细的资料:

因此:

    Name of the word list file where words are added for the 
    zg and zw commands.  It must end in ".{encoding}.add". 
    You need to include the path, otherwise the file is placed
    in the current directory. 
:set spellfile=./en.utf-8.add