|
1 | | -*ctrlp.txt* 模糊的 文件, 缓冲区, 最近最多使用, 标签, ... 检索. v1.79 |
| 1 | +*ctrlp.txt* 支持模糊匹配的 文件, 缓冲区, 最近最多使用, 标签, ... 检索. v1.79 |
2 | 2 | *CtrlP* *ControlP* *'ctrlp'* *'ctrl-p'* |
3 | 3 | =============================================================================== |
4 | 4 | # # |
@@ -68,14 +68,15 @@ OPTIONS *ctrlp-options* |
68 | 68 | |ctrlp_arg_map|...............是否拦截<c-y> 和 <c-o> 命令。 |
69 | 69 | |ctrlp_follow_symlinks|.......是否跟随链接。 |
70 | 70 | |ctrlp_lazy_update|...........停止输入时才更新。 |
71 | | - |ctrlp_default_input|.........为提示符面板提供一个种子。 |
| 71 | + |ctrlp_default_input|.........为提示符面板提供一个初始字符串。 |
72 | 72 | |ctrlp_abbrev|................输入缩写。 |
73 | 73 | |ctrlp_key_loop|..............为多字节输入开启输入事件循环。 |
74 | 74 | |ctrlp_prompt_mappings|.......改变提示符面板内部的按键绑定。 |
75 | 75 | |ctrlp_line_prefix|...........ctrlp 窗口中为每一行添加前缀。 |
76 | 76 | |ctrlp_open_single_match|.....当只有一个候选时自动接受。 |
77 | 77 | |ctrlp_brief_prompt|..........提示符为空的时候使用<bs>退出 CtrlP。 |
78 | 78 | |ctrlp_match_current_file|....在匹配条目中包含当前文件。 |
| 79 | + |ctrlp_types|.................內建类型的名称。 |
79 | 80 |
|
80 | 81 | 最近最多使用模式: |
81 | 82 | |ctrlp_mruf_max|..............记录的最近最多使用的最大数据。 |
@@ -154,6 +155,7 @@ OPTIONS *ctrlp-options* |
154 | 155 |
|
155 | 156 | 结果集的最大数目: |
156 | 157 | results:{n} - 列出最多 {n} 条结果 (默认: 和最大高度同步). |
| 158 | + 0代表没有限制。 |
157 | 159 |
|
158 | 160 | 注意: 当一个设置项没有被设置时,将会使用默认值。 |
159 | 161 |
|
@@ -254,7 +256,7 @@ OPTIONS *ctrlp-options* |
254 | 256 | 考虑清楚。 |
255 | 257 |
|
256 | 258 | *'g:ctrlp_custom_ignore'* |
257 | | -作为对 |'wildignore'| 的补充,用来设置你只是想在CtrlP中隐藏的文件和目录。使用正 |
| 259 | +作为对 |'wildignore'| 和 |g:ctrlp_show_hidden| 的补充,用来设置你只是想在CtrlP中隐藏的文件和目录。使用正 |
258 | 260 | 则表达式来指定匹配模式: > |
259 | 261 | let g:ctrlp_custom_ignore = '' |
260 | 262 | < |
@@ -439,13 +441,19 @@ OPTIONS *ctrlp-options* |
439 | 441 |
|
440 | 442 |
|
441 | 443 | *'g:ctrlp_match_current_file'* |
442 | | -在匹配条目中包含当前文件: |
| 444 | +在匹配条目中包含当前文件: > |
443 | 445 | let g:ctrlp_match_current_file = 1 |
444 | 446 |
|
445 | 447 | 默认情况下,当前文件不包含在列表中。 |
446 | 448 |
|
447 | 449 | 注意: 当使用 |g:ctrlp_match_func| 时不会应用这个选项。 |
448 | 450 |
|
| 451 | + *'g:ctrlp_types'* |
| 452 | +通过设置这个列表变量的值来定制核心类型: > |
| 453 | + let g:ctrlp_types = ['mru', 'fil'] |
| 454 | +
|
| 455 | +类型默认为: > |
| 456 | + let g:ctrlp_types = ['fil', 'buf', 'mru']. |
449 | 457 |
|
450 | 458 | *'g:ctrlp_abbrev'* |
451 | 459 | 定义可以在提示面包内被扩展(内部的或者可见的)的输入缩写: > |
@@ -817,14 +825,25 @@ MRU mode options:~ |
817 | 825 | :CtrlP [起始目录] |
818 | 826 | 用文件搜索模式打开CtrlP。 |
819 | 827 |
|
820 | | - 如果没有给定参数,|g:ctrlp_working_path_mode| 会被用来决定起始目录。 |
| 828 | + 如果没有给定参数,|g:ctrlp_working_path_mode| 会被用来决定起始目录。临时覆盖 |
| 829 | + 这个参数 的方法见 |:CtrlPCurFile| 和 |:CtrlPCurWD| 。 |
821 | 830 |
|
822 | 831 | 在输入时你可以使用 <tab> 自动补全[起始目录]。 |
823 | 832 |
|
824 | 833 | *:CtrlPBuffer* |
825 | 834 | :CtrlPBuffer |
826 | 835 | 用缓冲区搜索模式打开CtrlP。 |
827 | 836 |
|
| 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 | + |
828 | 847 | *:CtrlPMRU* |
829 | 848 | :CtrlPMRU |
830 | 849 | 用最近最多使用模式打开CtrlP。 |
@@ -1259,7 +1278,8 @@ h) 使用?打开帮助文件。 |
1259 | 1278 | 缓冲标签模式选项:~ |
1260 | 1279 |
|
1261 | 1280 | *'g:ctrlp_buftag_ctags_bin'* |
1262 | | -如果ctags没有在环境变量中配置,使用该选项来指定它的位置: > |
| 1281 | +如果ctags没有在环境变量中配置,或者一个二进制ctags文件存在于 |
| 1282 | +/opt/local/bin 或 /usr/local/bin,使用该选项来指定它的位置: > |
1263 | 1283 | let g:ctrlp_buftag_ctags_bin = '' |
1264 | 1284 | < |
1265 | 1285 |
|
@@ -1411,6 +1431,31 @@ Git 仓库: https://github.com/ctrlpvim/ctrlp.vim |
1411 | 1431 | =============================================================================== |
1412 | 1432 | 更新日志 *ctrlp-changelog* |
1413 | 1433 |
|
| 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 | + |
1414 | 1459 | + 新的支持高亮的缓冲区浏览模式 (建议 |+conceal|) |
1415 | 1460 | + 新选项: |g:ctrlp_bufname_mod|, |
1416 | 1461 | |g:ctrlp_bufpath_mod| |
|
0 commit comments