2

我不明白 Vim 可以进行拼写检查,它可以修改 ~/.vim 中的拼写文件以保持单词标记为好。

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

我将如何设置 Vim 来做到这一点?

4

1 回答 1

2

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. 

更多详细信息: http : //thejakeharding.com/tutorial/2012/06/13/using-spell-check-in-vim.html 自定义单词的单独 Vim 拼写文件

所以:

:set spellfile=./en.utf-8.add

hth

于 2015-01-16T08:06:28.917 回答