gpt4 book ai didi

Vim 语句运动

转载 作者:行者123 更新时间:2023-12-04 14:39:17 25 4
gpt4 key购买 nike

根据 Vim 的手册:

A sentence is defined as ending at a '.', '!' or '?' followed by either the end of a line, or by a space or tab.


然而 ()如果句子之间只有一个空格,则正常模式运动似乎没有效果:
First sentence. Second sentence.
但是 ()如果句子之间有多个空格,则按预期工作:
First sentence.  Second sentence.
我的问题是为什么 ()当句子用一个空格分隔时没有影响?

最佳答案

此行为记录在 Vim's manual (:help sentence) 中:

If the 'J' flag is present in 'cpoptions', at least two spaces have to follow the punctuation mark; Tabs are not recognized as white space.

关于Vim 语句运动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49126414/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com