作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试在 vim 中使用拼写检查器;如果我想通过 zg 命令向内部词典添加一个单词(这样它就不会突出显示为错误),它会显示 "optionpellfile is not设置”
。
我尝试输入:setpellfile=PATH.../.vim.spell
,
但我总是得到“无效参数:spellfile=PATH.../.vim.spell”
。有什么提示吗?
我使用的是 Linux Ubuntu 12.04。
最佳答案
您不能选择任意名称。 :help 'spellfile'
说:
It must end in ".{encoding}.add".
因此,请使用如下语法(并确保 spell
目录存在):
:set spellfile=~/.vim/spell/en.utf-8.add
对于编码,请检查 :set encoding?
(从技术上讲,它是缓冲区本地 'fileencoding'
设置,但大多数默认为前者。)
关于vim - 如何在VIM中正确设置spellfile?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24054491/
我是一名优秀的程序员,十分优秀!