加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Vim:word vs WORD

发布时间:2020-12-15 09:25:13 所属栏目:安全 来源:网络整理
导读:我正在学习Vim,不能围绕词和WORD之间的区别。 我从Vim手册中获得了以下内容。 A word consists of a sequence of letters,digits and underscores,or a sequence of other non-blank characters,separated with white space (spaces,tabs,). This can be ch
我正在学习Vim,不能围绕词和WORD之间的区别。

我从Vim手册中获得了以下内容。

A word consists of a sequence of letters,digits and underscores,or a
sequence of other non-blank characters,separated with white space
(spaces,tabs,). This can be changed with the ‘iskeyword’
option. An empty line is also considered to be a word.

A WORD consists of a sequence of non-blank characters,separated with
white space. An empty line is also considered to be a WORD.

我觉得词和WORD都是一样的东西。它们都是用空格分隔的非空白字符序列。空行可以被认为是字和WORD。

题:
它们之间有什么区别?
为什么/什么时候会有人用字词?

我已经做了Google和SO搜索,但是他们的搜索引擎将WORD解释为只是单词,所以它就像我在搜索Vim词vs单词,当然不会发现任何有用的。

> WORD总是由空格分隔。
>单词由非关键字字符分隔,这是可配置的。空格字符不是关键字,通常其他字符(如()[], – )不是,两者都不是。因此,一个词通常小于一个WORD;词导航更细粒度。

This "stuff" is not-so difficult!
wwww  wwwww  ww www ww wwwwwwwww    " (key)words,delimiters are non-keywords: "-! and whitespace
WWWW WWWWWWW WW WWWWWW WWWWWWWWWW   " WORDS,delimiters are whitespace only

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读