Skip to content

Commit 1baa289

Browse files
authored
Merge pull request #358 from codepiano/master
translate doc changes to Chinese
2 parents 754ed39 + fb00d37 commit 1baa289

1 file changed

Lines changed: 51 additions & 6 deletions

File tree

doc/ctrlp.cnx

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*ctrlp.txt* 模糊的 文件, 缓冲区, 最近最多使用, 标签, ... 检索. v1.79
1+
*ctrlp.txt* 支持模糊匹配的 文件, 缓冲区, 最近最多使用, 标签, ... 检索. v1.79
22
*CtrlP* *ControlP* *'ctrlp'* *'ctrl-p'*
33
===============================================================================
44
# #
@@ -68,14 +68,15 @@ OPTIONS *ctrlp-options*
6868
|ctrlp_arg_map|...............是否拦截<c-y><c-o> 命令。
6969
|ctrlp_follow_symlinks|.......是否跟随链接。
7070
|ctrlp_lazy_update|...........停止输入时才更新。
71-
|ctrlp_default_input|.........为提示符面板提供一个种子
71+
|ctrlp_default_input|.........为提示符面板提供一个初始字符串
7272
|ctrlp_abbrev|................输入缩写。
7373
|ctrlp_key_loop|..............为多字节输入开启输入事件循环。
7474
|ctrlp_prompt_mappings|.......改变提示符面板内部的按键绑定。
7575
|ctrlp_line_prefix|...........ctrlp 窗口中为每一行添加前缀。
7676
|ctrlp_open_single_match|.....当只有一个候选时自动接受。
7777
|ctrlp_brief_prompt|..........提示符为空的时候使用<bs>退出 CtrlP。
7878
|ctrlp_match_current_file|....在匹配条目中包含当前文件。
79+
|ctrlp_types|.................內建类型的名称。
7980

8081
最近最多使用模式:
8182
|ctrlp_mruf_max|..............记录的最近最多使用的最大数据。
@@ -154,6 +155,7 @@ OPTIONS *ctrlp-options*
154155

155156
结果集的最大数目:
156157
results:{n} - 列出最多 {n} 条结果 (默认: 和最大高度同步).
158+
0代表没有限制。
157159

158160
注意: 当一个设置项没有被设置时,将会使用默认值。
159161

@@ -254,7 +256,7 @@ OPTIONS *ctrlp-options*
254256
考虑清楚。
255257

256258
*'g:ctrlp_custom_ignore'*
257-
作为对 |'wildignore'| 的补充,用来设置你只是想在CtrlP中隐藏的文件和目录。使用正
259+
作为对 |'wildignore'| |g:ctrlp_show_hidden| 的补充,用来设置你只是想在CtrlP中隐藏的文件和目录。使用正
258260
则表达式来指定匹配模式: >
259261
let g:ctrlp_custom_ignore = ''
260262
<
@@ -439,13 +441,19 @@ OPTIONS *ctrlp-options*
439441

440442

441443
*'g:ctrlp_match_current_file'*
442-
在匹配条目中包含当前文件:
444+
在匹配条目中包含当前文件: >
443445
let g:ctrlp_match_current_file = 1
444446
445447
默认情况下,当前文件不包含在列表中。
446448

447449
注意: 当使用 |g:ctrlp_match_func| 时不会应用这个选项。
448450

451+
*'g:ctrlp_types'*
452+
通过设置这个列表变量的值来定制核心类型: >
453+
let g:ctrlp_types = ['mru', 'fil']
454+
455+
类型默认为: >
456+
let g:ctrlp_types = ['fil', 'buf', 'mru'].
449457
450458
*'g:ctrlp_abbrev'*
451459
定义可以在提示面包内被扩展(内部的或者可见的)的输入缩写: >
@@ -817,14 +825,25 @@ MRU mode options:~
817825
:CtrlP [起始目录]
818826
用文件搜索模式打开CtrlP。
819827

820-
如果没有给定参数,|g:ctrlp_working_path_mode| 会被用来决定起始目录。
828+
如果没有给定参数,|g:ctrlp_working_path_mode| 会被用来决定起始目录。临时覆盖
829+
这个参数 的方法见 |:CtrlPCurFile||:CtrlPCurWD|
821830

822831
在输入时你可以使用 <tab> 自动补全[起始目录]。
823832

824833
*:CtrlPBuffer*
825834
:CtrlPBuffer
826835
用缓冲区搜索模式打开CtrlP。
827836

837+
*:CtrlPCurFile*
838+
:CtrlPCurFile
839+
行为类似变量 |g:ctrlp_working_path_mode| = '' 时执行 |:CtrlP| ,忽略这个变量
840+
现在的值。
841+
842+
*:CtrlPCurWD*
843+
:CtrlPCurWD
844+
行为类似变量 |g:ctrlp_working_path_mode| = '' 时执行 |:CtrlP| ,忽略这个变量
845+
现在的值。
846+
828847
*:CtrlPMRU*
829848
:CtrlPMRU
830849
用最近最多使用模式打开CtrlP。
@@ -1259,7 +1278,8 @@ h) 使用?打开帮助文件。
12591278
缓冲标签模式选项:~
12601279

12611280
*'g:ctrlp_buftag_ctags_bin'*
1262-
如果ctags没有在环境变量中配置,使用该选项来指定它的位置: >
1281+
如果ctags没有在环境变量中配置,或者一个二进制ctags文件存在于
1282+
/opt/local/bin 或 /usr/local/bin,使用该选项来指定它的位置: >
12631283
let g:ctrlp_buftag_ctags_bin = ''
12641284
<
12651285

@@ -1411,6 +1431,31 @@ Git 仓库: https://github.com/ctrlpvim/ctrlp.vim
14111431
===============================================================================
14121432
更新日志 *ctrlp-changelog*
14131433

1434+
* 新选项 |g:ctrlp_custom_tag_files| 用来指定自定义的标签文件。
1435+
* 设置 g:ctrlp_match_window 为0来不限制窗口大小
1436+
1437+
Before 2016/11/28~
1438+
1439+
+ 新命令: |YankLine()| 来复制整个文件。
1440+
+ 新选项: |g:ctrlp_types| 来选择內建类型。
1441+
+ 新特性: 异步在新线程中调用 |g:ctrlp_user_command| 。 设置
1442+
|g:user_command_async| 为1来启用。
1443+
+ 为 delphi, rust 和 golang提供buffertag支持。
1444+
+ 新选项: |g:ctrlp_brief_prompt|,
1445+
|g:match_current_file|,
1446+
|g:ctrlp_compare_lim|.
1447+
+ 新功能: 自动忽略扩展。
1448+
+ 为 ant, tex, dosbatch, matlab 和 vhdl提供buffertag支持。
1449+
+ 新选项 |g:ctrlp_line_prefix| 来结合第三方插件。
1450+
+ 新选项 |g:open_single_match| 在 matches 中打开单个文件。
1451+
+ 添加启动方式 <plug>(ctrlp) 。
1452+
+ 接受 bang for CtrlPBookmarkDirAdd 来避免确认。
1453+
+ 处理像 "g:ctrlp_TYPE_MODE" 大小写混合的变量名。
1454+
例如: let g:ctrlp_path_sort
1455+
+ 新选项: |g:ctrlp_custom_ancestors|
1456+
1457+
在2014/08/08之前~
1458+
14141459
+ 新的支持高亮的缓冲区浏览模式 (建议 |+conceal|)
14151460
+ 新选项: |g:ctrlp_bufname_mod|,
14161461
|g:ctrlp_bufpath_mod|

0 commit comments

Comments
 (0)