vim – 拼写文件之间的字符不同(E763)

前端之家收集整理的这篇文章主要介绍了vim – 拼写文件之间的字符不同(E763)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
概要

我无法解决Vim错误E763:拼写文件之间的字符不同.

细节

我的.vimrc包含多种拼写语言:

set spelllang=en,de,pt,fr

当第一次运行Vim时,它会提示您下载缺少的拼写文件并将其放入.vim / spell.通过我的上述配置,这将导致三个文件de.utf-8.spl,fr.utf-8.spl和pt.utf-8.spl. (英文版附带Vim包)

E763的文档提到:

Vim allows you to use spell checking for several languages in the same file.
You can list them in the ‘spelllang’ option. As a consequence all spell files
for the same encoding must use the same word characters,otherwise they can’t
be combined without errors. If you get a warning that the word tables differ
you may need to generate the .spl file again with :mkspell. Check the FOL,
LOW and UPP lines in the used .aff file.

The XX.ascii.spl spell file generated with the “-ascii” argument will not
contain the table with characters,so that it can be combine with spell files
for any encoding. The .add.spl files also do not contain the table.

看来我需要重新生成单词表,但是这样做的步骤并不直接从手册中得到.我该怎么办?

我有完全相同的问题.我通过询问vim_dev邮件列表中的专家来解决这个问题.

解决方案,直接从马的嘴巴:

Try replacing the en_gb spell file that you installed long ago with
one downloaded from the server now. The files on the site have been
updated some time ago to fix a mistake.

Unfortunately there is no “update runtime files” command yet.

你可以找到完整的线程here.

猜你在找的Bash相关文章