请允许AutoComplPop连字符作为一个字字符内 [英] Make AutoComplPop allow hyphen as a word charcter
问题描述
这说明了截图,我遇到的问题:
This screenshot explains the problem I'm having:
我想地址字体
,而不是地址
出现在AutoComplPop下拉列表中,为复姓类名称常见于惯用的CSS。但默认它们被认为是一个字的结束
I would like address-font
rather than address
to appear in the AutoComplPop dropdown, as hyphenated class names are common in idiomatic css. But by default they are considered the end of a word.
我如何配置ACP这样一个连字符被视为就像任何其他文字和完整的类名称显示为自动完成选项?
How can I configure ACP so that a hyphen is treated just like any other letter and the full class names appear as options for autocompletion?
推荐答案
使用什么样的角色VIM确定单词字符设置 iskeyword
控制。 -
通常不认为是一个字的一部分。要添加使用
The setting iskeyword
controls what characters vim uses to determine word characters. -
is not normally considered part of a word. To add it use
set iskeyword+=-
看看:H'iskeyword'里
这篇关于请允许AutoComplPop连字符作为一个字字符内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!