Skip to content

Commit eb45a52

Browse files
authored
Merge pull request #559 from tsuyoshicho/fix/help-20201005
doc: Fix lazy update value rule
2 parents 58629fe + ae7dc88 commit eb45a52

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

doc/ctrlp.cnx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ OPTIONS *ctrlp-options*
203203
w - 用来修饰r:使用当前工作目录而不是当前文件所在目录进行查找
204204
0 或者 <empty> - 禁用这项功能。
205205

206-
注意 #1: 如果 "a" 或者 "c" 和 "r"一起被包含,当无法找到根目录时使用 "a" 或者
206+
注意 #1: 如果 "a" 或者 "c" 和 "r"一起被包含,当无法找到根目录时使用 "a" 或者
207207
"c" 的行为(作为备选)。
208208

209209
注意 #2: 你可以在每个缓冲区内使用 |b:var| 来设置该选项。
@@ -425,10 +425,12 @@ OPTIONS *ctrlp-options*
425425
注意: 当命令使用 |g:ctrlp_user_command| 定义时该选项无效。
426426

427427
*'g:ctrlp_lazy_update'*
428-
设置为1将开启延迟更新特性:只在输入停止一个确定的时间后才更新匹配窗口: >
428+
设置为1将或更大可开启延迟更新特性:只在输入停止一个确定的时间后才更新匹配窗口:
429+
>
429430
let g:ctrlp_lazy_update = 0
430431
<
431-
如果设置为1,在250毫秒后更新。如果大于1,数字会被作为延迟时间使用。
432+
如果设置为1,在250毫秒后更新該值作為默認值。如果大于1,数字会被作为延迟时间使
433+
用。
432434

433435
*'g:ctrlp_default_input'*
434436
设置为1将为提示符面板提供当前文件的相对路径作为种子: >
@@ -1045,7 +1047,7 @@ b) 在正则表达式模式,输入字符串被按照Vim的正则表达式模
10451047

10461048
例如: 'abc\d*efg' 会被解读为 'abc\d*efg'。
10471049

1048-
如何启用正则表达式模式参见 |ctrlp-fullregexp| (按键绑定)和
1050+
如何启用正则表达式模式参见 |ctrlp-fullregexp| (按键绑定)和
10491051
|g:ctrlp_regexp_search| (选项)。
10501052

10511053
c) 字符串末尾使用一个冒号':'跟随一个Vim命令来在打开那个文件后执行该命令。如果
@@ -1255,7 +1257,7 @@ h) 使用?打开帮助文件。
12551257
这样只会忽略包含 "build" 的目录和包含 "foo.txt" 的文件。不会忽略带
12561258
有 "build" 的文件或者反过来。
12571259

1258-
注意: 如果为了忽略名为 "build" 的目录,而不是『任何』包含 "build"
1260+
注意: 如果为了忽略名为 "build" 的目录,而不是『任何』包含 "build"
12591261
的目录,你可以使用下面的正则: ^build$
12601262

12611263
- 常见问题:

doc/ctrlp.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,12 +437,12 @@ Note: does not apply when a command defined with |g:ctrlp_user_command| is
437437
being used.
438438

439439
*'g:ctrlp_lazy_update'*
440-
Set this to 1 to enable the lazy-update feature: only update the match window
441-
after typing's been stopped for a certain amount of time: >
440+
Set this to 1 or bigger to enable the lazy-update feature: only update the
441+
match window after typing's been stopped for a certain amount of time: >
442442
let g:ctrlp_lazy_update = 0
443443
<
444-
If is 1, update after 250ms. If bigger than 1, the number will be used as the
445-
delay time in milliseconds.
444+
If is 1, update after 250ms that value as default tuned. If bigger than 1, the
445+
number will be used as the delay time in milliseconds.
446446

447447
*'g:ctrlp_default_input'*
448448
Set this to 1 to enable seeding the prompt with the current file's relative
@@ -462,7 +462,7 @@ Includes the current file in the match entries: >
462462
463463
By default, the current file is excluded from the list.
464464

465-
Note: does not apply when |g:ctrlp_match_func| is used.
465+
Note: does not apply when |g:ctrlp_match_func| is used.
466466

467467
*'g:ctrlp_types'*
468468
Set this to list of names to customize core types: >

0 commit comments

Comments
 (0)