ctrlp.txt 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688
  1. *ctrlp.txt* Fuzzy file, buffer, mru, tag, ... finder. v1.80
  2. *CtrlP* *ControlP* *'ctrlp'* *'ctrl-p'*
  3. ===============================================================================
  4. # #
  5. # :::::::: ::::::::::: ::::::::: ::: ::::::::: #
  6. # :+: :+: :+: :+: :+: :+: :+: :+: #
  7. # +:+ +:+ +:+ +:+ +:+ +:+ +:+ #
  8. # +#+ +#+ +#++:++#: +#+ +#++:++#+ #
  9. # +#+ +#+ +#+ +#+ +#+ +#+ #
  10. # #+# #+# #+# #+# #+# #+# #+# #
  11. # ######## ### ### ### ########## ### #
  12. # #
  13. ===============================================================================
  14. CONTENTS *ctrlp-contents*
  15. 1. Intro........................................|ctrlp-intro|
  16. 2. Options......................................|ctrlp-options|
  17. 3. Commands.....................................|ctrlp-commands|
  18. 4. Mappings.....................................|ctrlp-mappings|
  19. 5. Input Formats................................|ctrlp-input-formats|
  20. 6. Extensions...................................|ctrlp-extensions|
  21. ===============================================================================
  22. INTRO *ctrlp-intro*
  23. Full path fuzzy file, buffer, mru, tag, ... finder with an intuitive interface.
  24. Written in pure Vimscript for MacVim, gVim and Vim version 7.0+. Has full
  25. support for Vim's |regexp| as search pattern, built-in MRU files monitoring,
  26. project's root finder, and more.
  27. To enable optional extensions (tag, dir, rtscript...), see |ctrlp-extensions|.
  28. ===============================================================================
  29. OPTIONS *ctrlp-options*
  30. Overview:~
  31. |loaded_ctrlp|................Disable the plugin.
  32. |ctrlp_map|...................Default mapping.
  33. |ctrlp_cmd|...................Default command used for the default mapping.
  34. |ctrlp_by_filename|...........Default to filename mode or not.
  35. |ctrlp_regexp|................Default to regexp mode or not.
  36. |ctrlp_match_window|..........Order, height and position of the match window.
  37. |ctrlp_switch_buffer|.........Jump to an open buffer if already opened.
  38. |ctrlp_reuse_window|..........Reuse special windows (help, quickfix, etc).
  39. |ctrlp_tabpage_position|......Where to put the new tab page.
  40. |ctrlp_working_path_mode|.....How to set CtrlP's local working directory.
  41. |ctrlp_root_markers|..........Additional, high priority root markers.
  42. |ctrlp_use_caching|...........Use per-session caching or not.
  43. |ctrlp_clear_cache_on_exit|...Keep cache after exiting Vim or not.
  44. |ctrlp_cache_dir|.............Location of the cache directory.
  45. |ctrlp_show_hidden|...........Ignore dotfiles and dotdirs or not.
  46. |ctrlp_custom_ignore|.........Hide stuff when using |globpath()|.
  47. |ctrlp_max_files|.............Number of files to scan initially.
  48. |ctrlp_max_depth|.............Directory depth to recurse into when scanning.
  49. |ctrlp_user_command|..........Use an external scanner.
  50. |ctrlp_max_history|...........Number of entries saved in the prompt history.
  51. |ctrlp_open_new_file|.........How to open a file created by <c-y>.
  52. |ctrlp_open_multiple_files|...How to open files selected by <c-z>.
  53. |ctrlp_arg_map|...............Intercept <c-y> and <c-o> or not.
  54. |ctrlp_follow_symlinks|.......Follow symbolic links or not.
  55. |ctrlp_lazy_update|...........Only update when typing has stopped.
  56. |ctrlp_default_input|.........Seed the prompt with an initial string.
  57. |ctrlp_abbrev|................Input abbreviations.
  58. |ctrlp_key_loop|..............Use input looping for multi-byte input.
  59. |ctrlp_prompt_mappings|.......Change the mappings inside the prompt.
  60. |ctrlp_line_prefix|...........Prefix for each line in ctrlp window.
  61. |ctrlp_open_single_match|.....Automatically accept when only one candidate.
  62. |ctrlp_brief_prompt|..........Exit CtrlP on empty prompt by <bs>.
  63. |ctrlp_match_current_file|....Include current file in match entries.
  64. |ctrlp_types|.................Names of builtin types.
  65. MRU mode:
  66. |ctrlp_mruf_max|..............Max MRU entries to remember.
  67. |ctrlp_mruf_exclude|..........Files that shouldn't be remembered.
  68. |ctrlp_mruf_include|..........Files to be remembered.
  69. |ctrlp_mruf_relative|.........Show only MRU files in the working directory.
  70. |ctrlp_tilde_homedir|....Save MRU file paths in home dir as ~/.
  71. |ctrlp_mruf_default_order|....Disable sorting.
  72. |ctrlp_mruf_case_sensitive|...MRU files are case sensitive or not.
  73. |ctrlp_mruf_save_on_update|...Save to disk whenever a new entry is added.
  74. Buffer mode:
  75. |ctrlp_bufname_mod|...........File name section modificator.
  76. |ctrlp_bufpath_mod|...........File path section modificator.
  77. BufferTag mode: (to enable, see |ctrlp-extensions|)
  78. |g:ctrlp_buftag_ctags_bin|....The location of the ctags-compatible binary.
  79. |g:ctrlp_buftag_systemenc|....The encoding used for the ctags command.
  80. |g:ctrlp_buftag_types|........Add new filetypes and set the cmd arguments.
  81. Advanced options:
  82. |ctrlp_open_func|.............Use custom file opening functions.
  83. |ctrlp_status_func|...........Change CtrlP's two statuslines.
  84. |ctrlp_buffer_func|...........Call custom functions in the CtrlP buffer.
  85. |ctrlp_match_func|............Replace the built-in matching algorithm.
  86. -------------------------------------------------------------------------------
  87. Detailed descriptions and default values:~
  88. *'g:ctrlp_map'*
  89. Use this option to change the mapping to invoke CtrlP in |Normal| mode: >
  90. let g:ctrlp_map = '<c-p>'
  91. <
  92. *'g:ctrlp_cmd'*
  93. Set the default opening command to use when pressing the above mapping: >
  94. let g:ctrlp_cmd = 'CtrlP'
  95. <
  96. *'g:loaded_ctrlp'*
  97. Use this to disable the plugin completely: >
  98. let g:loaded_ctrlp = 1
  99. <
  100. *'g:ctrlp_by_filename'*
  101. Set this to 1 to set searching by filename (as opposed to full path) as the
  102. default: >
  103. let g:ctrlp_by_filename = 0
  104. <
  105. Can be toggled on/off by pressing <c-d> inside the prompt.
  106. *'g:ctrlp_regexp'*
  107. Set this to 1 to set regexp search as the default: >
  108. let g:ctrlp_regexp = 0
  109. <
  110. Can be toggled on/off by pressing <c-r> inside the prompt.
  111. *'g:ctrlp_match_window'*
  112. Change the position, the listing order of results, the minimum and the maximum
  113. heights of the match window: >
  114. let g:ctrlp_match_window = ''
  115. <
  116. Example: >
  117. let g:ctrlp_match_window = 'bottom,order:btt,min:1,max:10,results:10'
  118. <
  119. The position: (default: bottom)
  120. top - show the match window at the top of the screen.
  121. bottom - show the match window at the bottom of the screen.
  122. The listing order of results: (default: btt)
  123. order:ttb - from top to bottom.
  124. order:btt - from bottom to top.
  125. The minimum and maximum heights:
  126. min:{n} - show minimum {n} lines (default: 1).
  127. max:{n} - show maximum {n} lines (default: 10).
  128. The maximum number of results:
  129. results:{n} - list maximum {n} results (default: sync with max height).
  130. 0 mean no-limit.
  131. Note: When a setting isn't set, its default value will be used.
  132. *'g:ctrlp_switch_buffer'*
  133. When opening a file, if it's already open in a window somewhere, CtrlP will try
  134. to jump to it instead of opening a new instance: >
  135. let g:ctrlp_switch_buffer = 'Et'
  136. <
  137. e - jump when <cr> is pressed, but only to windows in the current tab.
  138. t - jump when <c-t> is pressed, but only to windows in another tab.
  139. v - like "e", but jump when <c-v> is pressed.
  140. h - like "e", but jump when <c-x> is pressed.
  141. E, T, V, H - like "e", "t", "v", and "h", but jump to windows anywhere.
  142. 0 or <empty> - disable this feature.
  143. *'g:ctrlp_reuse_window'*
  144. When opening a file with <cr>, CtrlP avoids opening it in windows created by
  145. plugins, help and quickfix. Use this to setup some exceptions: >
  146. let g:ctrlp_reuse_window = 'netrw'
  147. <
  148. Acceptable values are partial name, filetype or buftype of the special buffers.
  149. Use regexp to specify the pattern.
  150. Example: >
  151. let g:ctrlp_reuse_window = 'netrw\|help\|quickfix'
  152. <
  153. *'g:ctrlp_tabpage_position'*
  154. Where to put the new tab page when opening one: >
  155. let g:ctrlp_tabpage_position = 'ac'
  156. <
  157. a - after.
  158. b - before.
  159. c - the current tab page.
  160. l - the last tab page.
  161. f - the first tab page.
  162. *'g:ctrlp_working_path_mode'*
  163. When starting up, CtrlP sets its local working directory according to this
  164. variable: >
  165. let g:ctrlp_working_path_mode = 'ra'
  166. <
  167. c - the directory of the current file.
  168. a - the directory of the current file, unless it is a subdirectory of the cwd
  169. r - the nearest ancestor of the current file that contains one of these
  170. directories or files:
  171. .git .hg .svn .bzr _darcs
  172. w - modifier to "r": start search from the cwd instead of the current file's
  173. directory
  174. 0 or <empty> - disable this feature.
  175. Note #1: if "a" or "c" is included with "r", use the behavior of "a" or "c" (as
  176. a fallback) when a root can't be found.
  177. Note #2: you can use a |b:var| to set this option on a per buffer basis.
  178. *'g:ctrlp_root_markers'*
  179. Use this to set your own root markers in addition to the default ones (.git,
  180. .hg, .svn, .bzr, and _darcs). Your markers will take precedence: >
  181. let g:ctrlp_root_markers = ['']
  182. <
  183. Note: you can use a |b:var| to set this option on a per buffer basis.
  184. *'g:ctrlp_use_caching'*
  185. Enable/Disable per-session caching: >
  186. let g:ctrlp_use_caching = 1
  187. <
  188. 0 - Disable caching.
  189. 1 - Enable caching.
  190. n - When bigger than 1, disable caching and use the number as the limit to
  191. enable caching again.
  192. Note: you can quickly purge the cache by pressing <F5> while inside CtrlP.
  193. *'g:ctrlp_clear_cache_on_exit'*
  194. Set this to 0 to enable cross-session caching by not deleting the cache files
  195. upon exiting Vim: >
  196. let g:ctrlp_clear_cache_on_exit = 1
  197. <
  198. *'g:ctrlp_cache_dir'*
  199. Set the directory to store the cache files: >
  200. let g:ctrlp_cache_dir = $HOME.'/.cache/ctrlp'
  201. <
  202. *'g:ctrlp_show_hidden'*
  203. Set this to 1 if you want CtrlP to scan for dotfiles and dotdirs: >
  204. let g:ctrlp_show_hidden = 0
  205. <
  206. Note: does not apply when a command defined with |g:ctrlp_user_command| is
  207. being used.
  208. *'g:ctrlp_custom_ignore'*
  209. In addition to |g:ctrlp_show_hidden|, use this for files
  210. and directories you want only CtrlP to not show. Use regexp to specify the
  211. patterns: >
  212. let g:ctrlp_custom_ignore = ''
  213. <
  214. Examples: >
  215. let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
  216. let g:ctrlp_custom_ignore = {
  217. \ 'dir': '\v[\/]\.(git|hg|svn)$',
  218. \ 'file': '\v\.(exe|so|dll)$',
  219. \ 'link': 'SOME_BAD_SYMBOLIC_LINKS',
  220. \ }
  221. let g:ctrlp_custom_ignore = {
  222. \ 'file': '\v(\.cpp|\.h|\.hh|\.cxx)@<!$'
  223. \ }
  224. let g:ctrlp_custom_ignore = {
  225. \ 'func': 'some#custom#match_function'
  226. \ }
  227. <
  228. Note #1: |g:ctrlp_custom_ignore| does not apply when a
  229. command defined with |g:ctrlp_user_command| is being used.
  230. Note #2: when changing the option's variable type, remember to |:unlet| it
  231. first or restart Vim to avoid the "E706: Variable type mismatch" error.
  232. Note #3: when using the "func" ignore type, you must provide the full name of
  233. a function that can be called from CtrlP. An |autoload| function name is
  234. recommended here. The function must take 2 parameters, the item to match and
  235. its type. The type will be "dir", "file", or "link". The function must return
  236. 1 if the item should be ignored, 0 otherwise.
  237. Note #4: when |g:ctrlp_use_readdir| is set to 0, you can also use Vim's |'wildignore'|
  238. to exclude files and directories.
  239. *'g:ctrlp_max_files'*
  240. The maximum number of files to scan, set to 0 for no limit: >
  241. let g:ctrlp_max_files = 10000
  242. <
  243. Note: does not apply when a command defined with |g:ctrlp_user_command| is
  244. being used.
  245. *'g:ctrlp_max_depth'*
  246. The maximum depth of a directory tree to recurse into: >
  247. let g:ctrlp_max_depth = 40
  248. <
  249. Note: does not apply when a command defined with |g:ctrlp_user_command| is
  250. being used.
  251. *'g:ctrlp_user_command'*
  252. Specify an external tool to use for listing files instead of using Vim's
  253. |globpath()|. Use %s in place of the target directory: >
  254. let g:ctrlp_user_command = ''
  255. <
  256. Examples: >
  257. let g:ctrlp_user_command = 'find %s -type f' " MacOSX/Linux
  258. let g:ctrlp_user_command = 'dir %s /-n /b /s /a-d' " Windows
  259. <
  260. You can also use 'grep', 'findstr' or something else to filter the results.
  261. Examples: >
  262. let g:ctrlp_user_command =
  263. \ 'find %s -type f | grep -v -P "\.jpg$|/tmp/"' " MacOSX/Linux
  264. let g:ctrlp_user_command =
  265. \ 'dir %s /-n /b /s /a-d | findstr /v /l ".jpg \\tmp\\"' " Windows
  266. <
  267. Use a version control listing command when inside a repository, this is faster
  268. when scanning large projects: >
  269. let g:ctrlp_user_command = [root_marker, listing_command, fallback_command]
  270. let g:ctrlp_user_command = {
  271. \ 'types': {
  272. \ 1: [root_marker_1, listing_command_1],
  273. \ n: [root_marker_n, listing_command_n],
  274. \ },
  275. \ 'fallback': fallback_command,
  276. \ 'ignore': 0 or 1
  277. \ }
  278. <
  279. Some examples: >
  280. " Single VCS, listing command does not list untracked files:
  281. let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files']
  282. let g:ctrlp_user_command = ['.hg', 'hg --cwd %s locate -I .']
  283. " Multiple VCS's:
  284. let g:ctrlp_user_command = {
  285. \ 'types': {
  286. \ 1: ['.git', 'cd %s && git ls-files'],
  287. \ 2: ['.hg', 'hg --cwd %s locate -I .'],
  288. \ },
  289. \ 'fallback': 'find %s -type f'
  290. \ }
  291. " Single VCS, listing command lists untracked files (slower):
  292. let g:ctrlp_user_command =
  293. \ ['.git', 'cd %s && git ls-files -co --exclude-standard']
  294. let g:ctrlp_user_command =
  295. \ ['.hg', 'hg --cwd %s status -numac -I . $(hg root)'] " MacOSX/Linux
  296. let g:ctrlp_user_command = ['.hg', 'for /f "tokens=1" %%a in (''hg root'') '
  297. \ . 'do hg --cwd %s status -numac -I . %%a'] " Windows
  298. <
  299. Note #1: in the |Dictionary| format, 'fallback' and 'ignore' are optional. In
  300. the |List| format, fallback_command is optional.
  301. Note #2: if the fallback_command is empty or the 'fallback' key is not defined,
  302. |globpath()| will then be used when scanning outside of a repository.
  303. Note #3: unless the |Dictionary| format is used and 'ignore' is defined and set
  304. to 1, the |wildignore| and |g:ctrlp_custom_ignore| options do not apply when
  305. these custom commands are being used. When not present, 'ignore' is set to 0 by
  306. default to retain the performance advantage of using external commands.
  307. Note #4: when changing the option's variable type, remember to |:unlet| it
  308. first or restart Vim to avoid the "E706: Variable type mismatch" error.
  309. Note #5: you can use a |b:var| to set this option on a per buffer basis.
  310. *'g:ctrlp_max_history'*
  311. The maximum number of input strings you want CtrlP to remember. The default
  312. value mirrors Vim's global |'history'| option: >
  313. let g:ctrlp_max_history = &history
  314. <
  315. Set to 0 to disable prompt's history. Browse the history with <c-n> and <c-p>.
  316. *'g:ctrlp_open_new_file'*
  317. Use this option to specify how the newly created file is to be opened when
  318. pressing <c-y>: >
  319. let g:ctrlp_open_new_file = 'v'
  320. <
  321. t - in a new tab.
  322. h - in a new horizontal split.
  323. v - in a new vertical split.
  324. r - in the current window.
  325. *'g:ctrlp_open_multiple_files'*
  326. If non-zero, this will enable opening multiple files with <c-z> and <c-o>: >
  327. let g:ctrlp_open_multiple_files = 'v'
  328. <
  329. Example: >
  330. let g:ctrlp_open_multiple_files = '2vjr'
  331. <
  332. For the number:
  333. - If given, it'll be used as the maximum number of windows or tabs to create
  334. when opening the files (the rest will be opened as hidden buffers).
  335. - If not given, <c-o> will open all files, each in a new window or new tab.
  336. For the letters:
  337. t - each file in a new tab.
  338. h - each file in a new horizontal split.
  339. v - each file in a new vertical split.
  340. i - all files as hidden buffers.
  341. j - after opening, jump to the first opened tab or window.
  342. r - open the first file in the current window, then the remaining files in
  343. new splits or new tabs depending on which of "h", "v" and "t" is also
  344. present.
  345. *'g:ctrlp_arg_map'*
  346. When this is set to 1, the <c-o> and <c-y> mappings will accept one extra key
  347. as an argument to override their default behavior: >
  348. let g:ctrlp_arg_map = 0
  349. <
  350. Pressing <c-o> or <c-y> will then prompt for a keypress. The key can be:
  351. t - open in tab(s)
  352. h - open in horizontal split(s)
  353. v - open in vertical split(s)
  354. i - open as hidden buffers (for <c-o> only)
  355. c - clear the marked files (for <c-o> only)
  356. r - open in the current window (for <c-y> only)
  357. <esc>, <c-c>, <c-u> - cancel and go back to the prompt.
  358. <cr> - use the default behavior specified with |g:ctrlp_open_new_file| and
  359. |g:ctrlp_open_multiple_files|.
  360. *'g:ctrlp_follow_symlinks'*
  361. If non-zero, CtrlP will follow symbolic links when listing files: >
  362. let g:ctrlp_follow_symlinks = 0
  363. <
  364. 0 - don't follow symbolic links.
  365. 1 - follow but ignore looped internal symlinks to avoid duplicates.
  366. 2 - follow all symlinks indiscriminately.
  367. Note: does not apply when a command defined with |g:ctrlp_user_command| is
  368. being used.
  369. *'g:ctrlp_lazy_update'*
  370. Set this to 1 or bigger to enable the lazy-update feature: only update the
  371. match window after typing's been stopped for a certain amount of time: >
  372. let g:ctrlp_lazy_update = 0
  373. <
  374. If is 1, update after 250ms that value as default tuned. If bigger than 1, the
  375. number will be used as the delay time in milliseconds.
  376. *'g:ctrlp_default_input'*
  377. Set this to 1 to enable seeding the prompt with the current file's relative
  378. path: >
  379. let g:ctrlp_default_input = 0
  380. <
  381. Instead of 1 or 0, if the value of the option is a string, it'll be used as-is
  382. as the default input: >
  383. let g:ctrlp_default_input = 'anystring'
  384. <
  385. This option works well together with |g:ctrlp_open_single_match|
  386. *'g:ctrlp_match_current_file'*
  387. Includes the current file in the match entries: >
  388. let g:ctrlp_match_current_file = 1
  389. By default, the current file is excluded from the list.
  390. Note: With the exception of |:CtrlPMRU|, does not apply when
  391. |g:ctrlp_match_func| is used.
  392. *'g:ctrlp_types'*
  393. Set this to list of names to customize core types: >
  394. let g:ctrlp_types = ['mru', 'fil']
  395. By default, the types are: >
  396. let g:ctrlp_types = ['fil', 'buf', 'mru']
  397. *'g:ctrlp_abbrev'*
  398. Define input abbreviations that can be expanded (either internally or visibly)
  399. in the prompt: >
  400. let g:ctrlp_abbrev = {}
  401. <
  402. Examples: >
  403. let g:ctrlp_abbrev = {
  404. \ 'gmode': 'i',
  405. \ 'abbrevs': [
  406. \ {
  407. \ 'pattern': '^cd b',
  408. \ 'expanded': '@cd ~/.vim/bundle',
  409. \ 'mode': 'pfrz',
  410. \ },
  411. \ {
  412. \ 'pattern': '\(^@.\+\|\\\@<!:.\+\)\@<! ',
  413. \ 'expanded': '.\{-}',
  414. \ 'mode': 'pfr',
  415. \ },
  416. \ {
  417. \ 'pattern': '\\\@<!:.\+\zs\\\@<! ',
  418. \ 'expanded': '\ ',
  419. \ 'mode': 'pfz',
  420. \ },
  421. \ ]
  422. \ }
  423. <
  424. The 'pattern' string is regexp matched against the entered input. The expansion
  425. is as if the 'expanded' string was typed into the prompt.
  426. For 'gmode' (optional):
  427. i - expand internally (default).
  428. t - insert the expanded results into the prompt as you type.
  429. k - insert the expanded results when a non-keyword character is typed. Only
  430. applies when "t" is also present.
  431. For 'mode' (of each entry; optional):
  432. f - only in filename mode.
  433. p - only in full path mode.
  434. r - only in regexp mode.
  435. z - only in fuzzy mode.
  436. n - only when creating a new file with <c-y> (use the expanded string in the
  437. new filename).
  438. c - only when auto-completing directory names with <tab> (expand the pattern
  439. immediately before doing the auto-completion).
  440. <empty> or not defined - always enable.
  441. Note: the abbrev entries are evaluated in sequence, so a later entry can be
  442. evaluated against the expanded result of a previous entry; this includes itself
  443. when 'gmode' is "t".
  444. *'g:ctrlp_key_loop'*
  445. An experimental feature. Set this to 1 to enable input looping for the typing
  446. of multi-byte characters: >
  447. let g:ctrlp_key_loop = 0
  448. <
  449. Note #1: when set, this option resets the |g:ctrlp_lazy_update| option.
  450. Note #2: you can toggle this feature inside the prompt with a custom mapping: >
  451. let g:ctrlp_prompt_mappings = { 'ToggleKeyLoop()': ['<F3>'] }
  452. <
  453. *'g:ctrlp_prompt_mappings'*
  454. Use this to customize the mappings inside CtrlP's prompt to your liking. You
  455. only need to keep the lines that you've changed the values (inside []): >
  456. let g:ctrlp_prompt_mappings = {
  457. \ 'PrtBS()': ['<bs>', '<c-]>'],
  458. \ 'PrtDelete()': ['<del>'],
  459. \ 'PrtDeleteWord()': ['<c-w>'],
  460. \ 'PrtClear()': ['<c-u>'],
  461. \ 'PrtSelectMove("j")': ['<c-j>', '<down>'],
  462. \ 'PrtSelectMove("k")': ['<c-k>', '<up>'],
  463. \ 'PrtSelectMove("t")': ['<Home>', '<kHome>'],
  464. \ 'PrtSelectMove("b")': ['<End>', '<kEnd>'],
  465. \ 'PrtSelectMove("u")': ['<PageUp>', '<kPageUp>'],
  466. \ 'PrtSelectMove("d")': ['<PageDown>', '<kPageDown>'],
  467. \ 'PrtHistory(-1)': ['<c-n>'],
  468. \ 'PrtHistory(1)': ['<c-p>'],
  469. \ 'AcceptSelection("e")': ['<cr>', '<2-LeftMouse>'],
  470. \ 'AcceptSelection("h")': ['<c-x>', '<c-cr>', '<c-s>'],
  471. \ 'AcceptSelection("t")': ['<c-t>'],
  472. \ 'AcceptSelection("v")': ['<c-v>', '<RightMouse>'],
  473. \ 'ToggleFocus()': ['<s-tab>'],
  474. \ 'ToggleRegex()': ['<c-r>'],
  475. \ 'ToggleByFname()': ['<c-d>'],
  476. \ 'ToggleType(1)': ['<c-f>', '<c-up>'],
  477. \ 'ToggleType(-1)': ['<c-b>', '<c-down>'],
  478. \ 'PrtExpandDir()': ['<tab>'],
  479. \ 'PrtInsert("c")': ['<MiddleMouse>', '<insert>'],
  480. \ 'PrtInsert()': ['<c-\>'],
  481. \ 'PrtCurStart()': ['<c-a>'],
  482. \ 'PrtCurEnd()': ['<c-e>'],
  483. \ 'PrtCurLeft()': ['<c-h>', '<left>', '<c-^>'],
  484. \ 'PrtCurRight()': ['<c-l>', '<right>'],
  485. \ 'PrtClearCache()': ['<F5>'],
  486. \ 'PrtDeleteEnt()': ['<F7>'],
  487. \ 'CreateNewFile()': ['<c-y>'],
  488. \ 'MarkToOpen()': ['<c-z>'],
  489. \ 'OpenMulti()': ['<c-o>'],
  490. \ 'PrtExit()': ['<esc>', '<c-c>', '<c-g>'],
  491. \ }
  492. <
  493. Note: if pressing <bs> moves the cursor one character to the left instead of
  494. deleting a character for you, add this to your |.vimrc| to disable the plugin's
  495. default <c-h> mapping: >
  496. let g:ctrlp_prompt_mappings = { 'PrtCurLeft()': ['<left>', '<c-^>'] }
  497. <
  498. *'g:ctrlp_line_prefix'*
  499. This prefix will be prepended to each line in ctrlp's item listing.
  500. default: >
  501. let g:ctrlp_line_prefix = '> '
  502. <
  503. *'g:ctrlp_open_single_match'*
  504. List of CtrlP modes for which CtrlP should accept an entry directly, if only
  505. one candidate exists.
  506. Example: >
  507. let g:ctrlp_open_single_match = ['buffer tags', 'buffer']
  508. <
  509. This is currently only really useful together with |g:ctrlp_default_input|
  510. set before launching, and cleared afterwards, with a function such as
  511. following: >
  512. fu! <SID>tagsUnderCursor()
  513. try
  514. let default_input_save = get(g:, 'ctrlp_default_input', '')
  515. let g:ctrlp_default_input = expand('<cword>')
  516. CtrlPBufTagAll
  517. finally
  518. if exists('default_input_save')
  519. let g:ctrlp_default_input = default_input_save
  520. endif
  521. endtry
  522. endfu
  523. >
  524. <
  525. ----------------------------------------
  526. MRU mode options:~
  527. *'g:ctrlp_mruf_max'*
  528. Specify the number of recently opened files you want CtrlP to remember: >
  529. let g:ctrlp_mruf_max = 250
  530. <
  531. *'g:ctrlp_mruf_exclude'*
  532. Files you don't want CtrlP to remember. Use regexp to specify the patterns: >
  533. let g:ctrlp_mruf_exclude = ''
  534. <
  535. Examples: >
  536. let g:ctrlp_mruf_exclude = '/tmp/.*\|/temp/.*' " MacOSX/Linux
  537. let g:ctrlp_mruf_exclude = '^C:\\dev\\tmp\\.*' " Windows
  538. <
  539. *'g:ctrlp_mruf_include'*
  540. And if you want CtrlP to only remember some files, specify them here: >
  541. let g:ctrlp_mruf_include = ''
  542. <
  543. Example: >
  544. let g:ctrlp_mruf_include = '\.py$\|\.rb$'
  545. <
  546. *'g:ctrlp_tilde_homedir'*
  547. Set this to 1 to save every MRU file path $HOME/$filepath in the $HOME dir
  548. as ~/$filepath instead of $HOME/$filepath : >
  549. let g:ctrlp_tilde_homedir = 0
  550. <
  551. Note: This applies also to all dir paths stored by :CtrlPBookmarkDirAdd!
  552. *'g:ctrlp_mruf_relative'*
  553. Set this to 1 to show only MRU files in the current working directory: >
  554. let g:ctrlp_mruf_relative = 0
  555. <
  556. Note: you can use a custom mapping to toggle this option inside the prompt: >
  557. let g:ctrlp_prompt_mappings = { 'ToggleMRURelative()': ['<F2>'] }
  558. <
  559. *'g:ctrlp_mruf_default_order'*
  560. Set this to 1 to disable sorting when searching in MRU mode: >
  561. let g:ctrlp_mruf_default_order = 0
  562. <
  563. *'g:ctrlp_mruf_case_sensitive'*
  564. Match this with your file system case-sensitivity setting to avoid duplicate
  565. MRU entries: >
  566. let g:ctrlp_mruf_case_sensitive = 1
  567. <
  568. *'g:ctrlp_mruf_save_on_update'*
  569. Set this to 0 to disable saving of the MRU list to hard drive whenever a new
  570. entry is added, saving will then only occur when exiting Vim: >
  571. let g:ctrlp_mruf_save_on_update = 1
  572. <
  573. *'g:ctrlp_bufname_mod'*
  574. Modify file name section according to modificator string. See |filename-modifiers|. >
  575. let g:ctrlp_bufname_mod = ':t'
  576. <
  577. *'g:ctrlp_bufpath_mod'*
  578. Modify file path section according to modificator string. See |filename-modifiers|. >
  579. let g:ctrlp_bufpath_mod = ':~:.:h'
  580. <
  581. ----------------------------------------
  582. Advanced options:~
  583. *'g:ctrlp_open_func'*
  584. Define a custom function to open the selected file: >
  585. let g:ctrlp_open_func = {}
  586. <
  587. Example: >
  588. let g:ctrlp_open_func = {
  589. \ 'files' : 'Function_Name_1',
  590. \ 'buffers' : 'Function_Name_2',
  591. \ 'mru files' : 'Function_Name_3',
  592. \ }
  593. <
  594. Structure of the functions: >
  595. function! Function_Name(action, line)
  596. " Arguments:
  597. " |
  598. " +- a:action : The opening action:
  599. " | + 'e' : user pressed <cr> (default)
  600. " | + 'h' : user pressed <c-x> (default)
  601. " | + 'v' : user pressed <c-v> (default)
  602. " | + 't' : user pressed <c-t> (default)
  603. " | + 'x' : user used the <c-o> console dialog (default) and
  604. " | chose "e[x]ternal".
  605. " |
  606. " +- a:line : The selected line.
  607. endfunction
  608. <
  609. Note: does not apply when opening multiple files with <c-z> and <c-o>.
  610. Example: open HTML files in the default web browser when <c-t> is pressed and
  611. in Vim otherwise >
  612. function! HTMLOpenFunc(action, line)
  613. if a:action =~ '^[tx]$' && fnamemodify(a:line, ':e') =~? '^html\?$'
  614. " Get the filename
  615. let filename = fnameescape(fnamemodify(a:line, ':p'))
  616. " Close CtrlP
  617. call ctrlp#exit()
  618. " Open the file
  619. silent! execute '!xdg-open' filename
  620. elseif a:action == 'x' && fnamemodify(a:line, ':e') !~? '^html\?$'
  621. " Not a HTML file, simulate pressing <c-o> again and wait for new input
  622. call feedkeys("\<c-o>")
  623. else
  624. " Use CtrlP's default file opening function
  625. call call('ctrlp#acceptfile', [a:action, a:line])
  626. endif
  627. endfunction
  628. let g:ctrlp_open_func = { 'files': 'HTMLOpenFunc' }
  629. <
  630. *'g:ctrlp_status_func'*
  631. Use this to customize the statuslines for the CtrlP window: >
  632. let g:ctrlp_status_func = {}
  633. <
  634. Example: >
  635. let g:ctrlp_status_func = {
  636. \ 'main': 'Function_Name_1',
  637. \ 'prog': 'Function_Name_2',
  638. \ }
  639. <
  640. Structure of the functions: >
  641. " Main statusline
  642. function! Function_Name_1(focus, byfname, regex, prev, item, next, marked)
  643. " Arguments:
  644. " |
  645. " +- a:focus : The focus of the prompt: "prt" or "win".
  646. " |
  647. " +- a:byfname : In filename mode or in full path mode: "file" or "path".
  648. " |
  649. " +- a:regex : In regex mode: 1 or 0.
  650. " |
  651. " +- a:prev : The previous search mode.
  652. " |
  653. " +- a:item : The current search mode.
  654. " |
  655. " +- a:next : The next search mode.
  656. " |
  657. " +- a:marked : The number of marked files, or a comma separated list of
  658. " the marked filenames.
  659. return full_statusline
  660. endfunction
  661. " Progress statusline
  662. function! Function_Name_2(str)
  663. " a:str : Either the number of files scanned so far, or a string indicating
  664. " the current directory is being scanned with a user_command.
  665. return full_statusline
  666. endfunction
  667. <
  668. See https://gist.github.com/1610859 for a working example.
  669. *'g:ctrlp_buffer_func'*
  670. Specify the functions that will be called after entering and before exiting the
  671. CtrlP buffer: >
  672. let g:ctrlp_buffer_func = {}
  673. <
  674. Example: >
  675. let g:ctrlp_buffer_func = {
  676. \ 'enter': 'Function_Name_1',
  677. \ 'exit': 'Function_Name_2',
  678. \ }
  679. <
  680. *'g:ctrlp_match_func'*
  681. Set an external fuzzy matching function for CtrlP to use: >
  682. let g:ctrlp_match_func = {}
  683. <
  684. Example: >
  685. let g:ctrlp_match_func = { 'match': 'Function_Name' }
  686. <
  687. Structure of the function: >
  688. function! Function_Name(items, str, limit, mmode, ispath, crfile, regex)
  689. " Arguments:
  690. " |
  691. " +- a:items : The full list of items to search in.
  692. " |
  693. " +- a:str : The string entered by the user.
  694. " |
  695. " +- a:limit : The max height of the match window. Can be used to limit
  696. " | the number of items to return.
  697. " |
  698. " +- a:mmode : The match mode. Can be one of these strings:
  699. " | + "full-line": match the entire line.
  700. " | + "filename-only": match only the filename.
  701. " | + "first-non-tab": match until the first tab char.
  702. " | + "until-last-tab": match until the last tab char.
  703. " |
  704. " +- a:ispath : Is 1 when searching in file, buffer, mru, mixed, dir, and
  705. " | rtscript modes. Is 0 otherwise.
  706. " |
  707. " +- a:crfile : The file in the current window. Should be excluded from the
  708. " | results when a:ispath == 1.
  709. " |
  710. " +- a:regex : In regex mode: 1 or 0.
  711. return list_of_matched_items
  712. endfunction
  713. <
  714. Note: you can extend any of the above options with { 'arg_type': 'dict' } to
  715. enable passing all the function arguments in a single Dictionary argument. Use
  716. the existing argument names as keys in this Dictionary.
  717. Example: >
  718. let g:ctrlp_status_func = {
  719. \ 'arg_type' : 'dict',
  720. \ 'enter': 'Function_Name_1',
  721. \ 'exit': 'Function_Name_2',
  722. \ }
  723. function! Function_Name_1(dict)
  724. " where dict == {
  725. " \ 'focus': value,
  726. " \ 'byfname': value,
  727. " \ 'regex': value,
  728. " \ ...
  729. " }
  730. endfunction
  731. <
  732. *'g:ctrlp_brief_prompt'*
  733. When this is set to 1, the <bs> on empty prompt exit CtrlP.
  734. *'g:ctrlp_use_readdir'*
  735. Unlike kien/ctrlp.vim, ctrlpvim/ctrlp.vim uses readdir() instead of globpath()
  736. for speed. Set this option to 0 if you want to revert to the original
  737. behavior.
  738. Example: >
  739. let g:ctrlp_use_readdir = 0
  740. <
  741. *ctrlp-default-value*
  742. Otherwise, you can use below to change default value.
  743. Example: >
  744. let g:ctrlp_path_nolim = 1
  745. This is possible to change no-limit mode for match type "path".
  746. *ctrlp_compare_lim*
  747. If your search directory has more number of files than this limit, no sorting
  748. will be performed for the first readout. You can improve CtrlP performance by
  749. setting this to a proper value, but no sorting on the first readout can reduce
  750. the quality of fuzzy finding results.
  751. Example:
  752. let g:ctrlp_compare_lim = 100
  753. Set the value to 0 for unlimited sorting. Default is 0.
  754. ===============================================================================
  755. COMMANDS *ctrlp-commands*
  756. *:CtrlP*
  757. :CtrlP [starting-directory]
  758. Open CtrlP in find file mode.
  759. If no argument is given, the value of |g:ctrlp_working_path_mode| will be
  760. used to determine the starting directory. See |:CtrlPCurFile| and
  761. |:CtrlPCurWD| to temporarily override the setting.
  762. You can use <tab> to auto-complete the [starting-directory] when typing it.
  763. *:CtrlPBuffer*
  764. :CtrlPBuffer
  765. Open CtrlP in find buffer mode.
  766. *:CtrlPCurFile*
  767. :CtrlPCurFile
  768. This acts like |:CtrlP| with |g:ctrlp_working_path_mode| = 'c' and ignores
  769. the variable's current value.
  770. *:CtrlPCurWD*
  771. :CtrlPCurWD
  772. This acts like |:CtrlP| with |g:ctrlp_working_path_mode| = 'd' and ignores
  773. the variable's current value.
  774. *:CtrlPMRU*
  775. :CtrlPMRU
  776. Open CtrlP in find Most-Recently-Used file mode.
  777. *:CtrlPLastMode*
  778. :CtrlPLastMode [--dir]
  779. Open CtrlP in the last mode used. When having the "--dir" argument, also
  780. reuse the last working directory.
  781. *:CtrlPRoot*
  782. :CtrlPRoot
  783. This acts like |:CtrlP| with |g:ctrlp_working_path_mode| = 'r' and ignores
  784. the variable's current value.
  785. *:CtrlPClearCache*
  786. :CtrlPClearCache
  787. Flush the cache for the current working directory. The same as pressing <F5>
  788. inside CtrlP.
  789. To enable or disable caching, use the |g:ctrlp_use_caching| option.
  790. *:CtrlPClearAllCaches*
  791. :CtrlPClearAllCaches
  792. Delete all the cache files saved in |g:ctrlp_cache_dir| location.
  793. -------------------------------------------------------------------------------
  794. For commands provided by bundled extensions, see |ctrlp-extensions|.
  795. ===============================================================================
  796. MAPPINGS *ctrlp-mappings*
  797. *'ctrlp-<c-p>'*
  798. <c-p>
  799. Default |Normal| mode mapping to open the CtrlP prompt in find file mode.
  800. ----------------------------------------
  801. Once inside the prompt:~
  802. <c-d>
  803. Toggle between full-path search and filename only search.
  804. Note: in filename mode, the prompt's base is '>d>' instead of '>>>'
  805. <c-r> *'ctrlp-fullregexp'*
  806. Toggle between the string mode and full regexp mode.
  807. Note: in full regexp mode, the prompt's base is 'r>>' instead of '>>>'
  808. See also: |input-formats| (guide) and |g:ctrlp_regexp_search| (option).
  809. <c-f>, 'forward'
  810. <c-up>
  811. Scroll to the 'next' search mode in the sequence.
  812. <c-b>, 'backward'
  813. <c-down>
  814. Scroll to the 'previous' search mode in the sequence.
  815. <tab> *'ctrlp-autocompletion'*
  816. Auto-complete directory names under the current working directory inside
  817. the prompt.
  818. <s-tab>
  819. Toggle the focus between the match window and the prompt.
  820. <esc>,
  821. <c-c>,
  822. <c-g>
  823. Exit CtrlP.
  824. Moving:~
  825. <c-j>,
  826. <down>
  827. Move selection down.
  828. <c-k>,
  829. <up>
  830. Move selection up.
  831. <c-a>
  832. Move the cursor to the 'start' of the prompt.
  833. <c-e>
  834. Move the cursor to the 'end' of the prompt.
  835. <c-h>,
  836. <left>,
  837. <c-^>
  838. Move the cursor one character to the 'left'.
  839. <c-l>,
  840. <right>
  841. Move the cursor one character to the 'right'.
  842. Editing:~
  843. <c-]>,
  844. <bs>
  845. Delete the preceding character.
  846. <del>
  847. Delete the current character.
  848. <c-w>
  849. Delete a preceding inner word.
  850. <c-u>
  851. Clear the input field.
  852. Browsing input history:~
  853. <c-n>
  854. Next string in the prompt's history.
  855. <c-p>
  856. Previous string in the prompt's history.
  857. Opening/Creating a file:~
  858. <cr>
  859. Open the selected file in the 'current' window if possible.
  860. <c-t>
  861. Open the selected file in a new 'tab'.
  862. <c-v>
  863. Open the selected file in a 'vertical' split.
  864. <c-x>,
  865. <c-cr>,
  866. <c-s>
  867. Open the selected file in a 'horizontal' split.
  868. <c-y>
  869. Create a new file and its parent directories.
  870. Opening multiple files:~
  871. <c-z>
  872. - Mark/unmark a file to be opened with <c-o>.
  873. - Mark/unmark a file to create a new file in its directory using <c-y>.
  874. <c-o>
  875. - Open files marked by <c-z>.
  876. - When no file has been marked by <c-z>, open a console dialog with the
  877. following options:
  878. Open the selected file:
  879. t - in a tab page.
  880. v - in a vertical split.
  881. h - in a horizontal split.
  882. r - in the current window.
  883. i - as a hidden buffer.
  884. x - (optional) with the function defined in |g:ctrlp_open_func|.
  885. Other options (not shown):
  886. a - mark all files in the match window.
  887. d - change CtrlP's local working directory to the selected file's
  888. directory and switch to find file mode.
  889. Function keys:~
  890. <F5>
  891. - Refresh the match window and purge the cache for the current directory.
  892. - Remove deleted files from the MRU list.
  893. <F7>
  894. MRU mode:
  895. - Wipe the list.
  896. - Delete entries marked by <c-z>.
  897. Buffer mode:
  898. - Delete entry under the cursor or delete multiple entries marked by <c-z>.
  899. Pasting:~
  900. <Insert>, *'ctrlp-pasting'*
  901. <MiddleMouse>
  902. Paste the clipboard content into the prompt.
  903. <c-\>
  904. Open a console dialog to paste <cword>, <cfile>, the content of the search
  905. register, the last visual selection, the clipboard or any register into the
  906. prompt.
  907. Choose your own mappings with |g:ctrlp_prompt_mappings|.
  908. ----------------------------------------
  909. When inside the match window (press <s-tab> to switch):~
  910. a-z
  911. 0-9
  912. ~^-=;`',.+!@#$%&_(){}[]
  913. Cycle through the lines which have the matching first character.
  914. ===============================================================================
  915. INPUT FORMATS *ctrlp-input-formats*
  916. Formats for inputting in the prompt:~
  917. a) Simple string.
  918. E.g. 'abc' is understood internally as 'a[^a]\{-}b[^b]\{-}c'
  919. b) When in regexp mode, the input string's treated as a Vim's regexp |pattern|
  920. without any modification.
  921. E.g. 'abc\d*efg' will be read as 'abc\d*efg'.
  922. See |ctrlp-fullregexp| (keymap) and |g:ctrlp_regexp_search| (option) for
  923. how to enable regexp mode.
  924. c) End the string with a colon ':' followed by a Vim command to execute that
  925. command after opening the file. If you need to use ':' literally, escape it
  926. with a backslash: '\:'. When opening multiple files, the command will be
  927. executed on each opening file.
  928. E.g. Use ':45' to jump to line 45.
  929. Use ':/any\:string' to jump to the first instance of 'any:string'.
  930. Use ':+setf\ myfiletype|50' to set the filetype to 'myfiletype', then
  931. jump to line 50.
  932. Use ':diffthis' when opening multiple files to run |:diffthis| on the
  933. first 4 files.
  934. See also: Vim's |++opt| and |+cmd|.
  935. d) Input two dots '..' and then hit the <Enter> key to go upward the directory tree by 1 level. To go up
  936. multiple levels, use one extra dot for each extra level:
  937. >
  938. Raw input Interpreted as
  939. ..<Cr> ../
  940. ...<Cr> ../../
  941. ....<Cr> ../../../
  942. <
  943. Note: if the parent directories are large and uncached, this can be slow.
  944. You can also use '@cd path/' to change CtrlP's local working directory.
  945. Use '@cd %:h' to change to the directory of the current file.
  946. e) Similarly, submit '/' or '\' to find and go to the project's root.
  947. If the project is large, using a VCS listing command to look for files
  948. might help speeding up the initial scan (see |g:ctrlp_user_command| for more
  949. details).
  950. Note: d) and e) only work in file, directory and mixed modes.
  951. f) Type the name of a non-existent file and press <c-y> to create it. Mark a
  952. file with <c-z> to create the new file in the same directory as the marked
  953. file.
  954. E.g. Using 'newdir/newfile.txt' will create a directory named 'newdir' as
  955. well as a file named 'newfile.txt'.
  956. If an entry 'some/old/dirs/oldfile.txt' is marked with <c-z>, then
  957. 'newdir' and 'newfile.txt' will be created under 'some/old/dirs'. The
  958. final path will then be 'some/old/dirs/newdir/newfile.txt'.
  959. Note: use '\' in place of '/' on Windows (if |'shellslash'| is not set).
  960. g) In filename mode (toggle with <c-d>), you can use one primary pattern and
  961. one refining pattern separated by a semicolon. Both patterns work like (a),
  962. or (b) when in regexp mode.
  963. h) Submit ? to open this help file.
  964. ===============================================================================
  965. EXTENSIONS *ctrlp-extensions*
  966. Extensions are optional. To enable an extension, add its name to the variable
  967. g:ctrlp_extensions: >
  968. let g:ctrlp_extensions = ['tag', 'buffertag', 'quickfix', 'dir', 'rtscript',
  969. \ 'undo', 'line', 'changes', 'mixed', 'bookmarkdir']
  970. <
  971. The order of the items will be the order they appear on the statusline and when
  972. using <c-f>, <c-b>.
  973. Available extensions:~
  974. *:CtrlPTag*
  975. * Tag mode:~
  976. - Name: 'tag'
  977. - Command: ":CtrlPTag"
  978. - Search for a tag within a generated central tags file, and jump to the
  979. definition. Use the Vim's option |'tags'| to specify the names and the
  980. locations of the tags file(s).
  981. E.g. set tags+=doc/tags
  982. *:CtrlPBufTag*
  983. *:CtrlPBufTagAll*
  984. * Buffer Tag mode:~
  985. - Name: 'buffertag'
  986. - Commands: ":CtrlPBufTag [buffer]",
  987. ":CtrlPBufTagAll".
  988. - Search for a tag within the current buffer or all listed buffers and jump
  989. to the definition. Requires |exuberant_ctags| or compatible programs.
  990. *:CtrlPQuickfix*
  991. * Quickfix mode:~
  992. - Name: 'quickfix'
  993. - Command: ":CtrlPQuickfix"
  994. - Search for an entry in the current quickfix errors and jump to it.
  995. *:CtrlPDir*
  996. * Directory mode:~
  997. - Name: 'dir'
  998. - Command: ":CtrlPDir [starting-directory]"
  999. - Search for a directory and change the working directory to it.
  1000. - Mappings:
  1001. + <cr> change the local working directory for CtrlP and keep it open.
  1002. + <c-t> change the global working directory (exit).
  1003. + <c-v> change the local working directory for the current window (exit).
  1004. + <c-x> change the global working directory to CtrlP's current local
  1005. working directory (exit).
  1006. *:CtrlPRTS*
  1007. * Runtime script mode:~
  1008. - Name: 'rtscript'
  1009. - Command: ":CtrlPRTS"
  1010. - Search for files (vimscripts, docs, snippets...) in runtimepath.
  1011. *:CtrlPUndo*
  1012. * Undo mode:~
  1013. - Name: 'undo'
  1014. - Command: ":CtrlPUndo"
  1015. - Browse undo history.
  1016. *:CtrlPLine*
  1017. * Line mode:~
  1018. - Name: 'line'
  1019. - Command: ":CtrlPLine [buffer]"
  1020. - Search for a line in all listed buffers or in the specified [buffer].
  1021. *:CtrlPChange*
  1022. *:CtrlPChangeAll*
  1023. * Change list mode:~
  1024. - Name: 'changes'
  1025. - Commands: ":CtrlPChange [buffer]",
  1026. ":CtrlPChangeAll".
  1027. - Search for and jump to a recent change in the current buffer or in all
  1028. listed buffers.
  1029. *:CtrlPMixed*
  1030. * Mixed mode:~
  1031. - Name: 'mixed'
  1032. - Command: ":CtrlPMixed"
  1033. - Search in files, buffers and MRU files at the same time.
  1034. *:CtrlPBookmarkDir*
  1035. *:CtrlPBookmarkDirAdd*
  1036. * BookmarkDir mode:~
  1037. - Name: 'bookmarkdir'
  1038. - Commands: ":CtrlPBookmarkDir",
  1039. ":CtrlPBookmarkDirAdd [directory] [TITLE]".
  1040. ":CtrlPBookmarkDirAdd! [directory] [TITLE]".
  1041. - Search for a bookmarked directory and change the working directory to it.
  1042. - Add either the dir [directory], if supplied, or otherwise ask for it,
  1043. under the title given by either [TITLE], if supplied, or otherwise ask for
  1044. it, to the CtrlPBookmarkDir list.
  1045. - Add either the dir [directory], if supplied, or otherwise the current
  1046. work dir ( [CWD] ) under the title given by either [TITLE], if supplied,
  1047. or otherwise [CWD] to the CtrlPBookmarkDir list.
  1048. The last command can be used to add all recently used work dirs to the
  1049. CtrlPBookmarkDir list by an autocommand like
  1050. >
  1051. augroup CtrlPDirMRU
  1052. autocmd!
  1053. autocmd FileType * if &modifiable | execute 'silent CtrlPBookmarkDirAdd! %:p:h' | endif
  1054. augroup END
  1055. <
  1056. - Mappings:
  1057. + <cr> change the local working directory for CtrlP, keep it open and
  1058. switch to find file mode.
  1059. + <c-x> change the global working directory (exit).
  1060. + <c-v> change the local working directory for the current window (exit).
  1061. + <F7>
  1062. - Wipe bookmark list.
  1063. - Delete entries marked by <c-z>.
  1064. *ctrlp-autoignore-extension*
  1065. * Autoignore mode:~
  1066. - Name: 'autoignore'
  1067. - This extension doesn't add new commands. It adds support for per-project
  1068. ignore patterns (as per |ctrlp_custom_ignore|) via a `.ctrlpignore` file
  1069. at the root of the project. It's basically like a `.gitignore` or
  1070. `.hgignore` for CtrlP.
  1071. Note: auto-ignore won't work when |g:ctrlp_user_command| is used.
  1072. Note: `.ctrlpignore` will be added to the root markers (see
  1073. |g:ctrlp_root_markers|).
  1074. - Ignore file syntax:
  1075. Empty lines, and lines starting with `#` (comments) are ignored.
  1076. Other lines are treated like regular expression patterns. See *string-match*
  1077. for how patterns are used. Anything that matches any of the patterns will be
  1078. ignored from CtrlP's search results.
  1079. Example:
  1080. \.tmp$
  1081. ^generated/
  1082. local\.cfg
  1083. Note: patterns should use forward slashes, even on Windows.
  1084. You can also switch to a glob-like syntax like this:
  1085. syntax:wildignore
  1086. *.tar.gz
  1087. *.tmp
  1088. This will temporarily add each pattern to |'wildignore'| for the
  1089. duration of the file scan, and remove them at the end.
  1090. You can switch back to the default regular-expression-based patterns by
  1091. writing:
  1092. syntax:regexp
  1093. You can also specify a match on only a given type of item:
  1094. dir:build
  1095. file:foo\.txt
  1096. This will only ignore directories with "build" in them, and files with
  1097. "foo.txt" in them. Not files with "build" in them or vice-versa.
  1098. Note: to ignore a root directory "build", and not _any_ directory with
  1099. "build" in it, you can root the regex: ^build$
  1100. - FAQ:
  1101. Q: Why can't CtrlP support `.gitignore` or `.hgignore` natively?
  1102. A: Those files look at first like they may contain all the patterns
  1103. you'd want to exclude from CtrlP already. However, more often than not,
  1104. there are some differences. Those files list patterns that should not be
  1105. included in source-control. This includes things you want to ignore, but
  1106. also things you may not want to: local settings, external packages and
  1107. dependencies, etc. The author felt the trouble of supporting various
  1108. syntaxes was too much compared to just copy/pasting a few lines. Feel
  1109. free to contribute a patch if you disagree :)
  1110. Q: I enabled |ctrlp-autoignore-extension|, or edited `.ctrlpignore`, but
  1111. none of the new patterns are working. What did I do wrong?
  1112. A: Probably nothing! CtrlP can cache search results for faster response
  1113. times. You can hit <F5> to force it to refresh. This will use the newer
  1114. ignore patterns if the `.ctrlpignore` file has changed, too.
  1115. ----------------------------------------
  1116. Buffer Tag mode options:~
  1117. *'g:ctrlp_buftag_ctags_bin'*
  1118. If ctags isn't in your $PATH, or a ctags binary exists in either
  1119. /opt/local/bin or /usr/local/bin, use this to set its location: >
  1120. let g:ctrlp_buftag_ctags_bin = ''
  1121. <
  1122. *'g:ctrlp_buftag_systemenc'*
  1123. Match this with your OS's encoding (not Vim's). The default value mirrors Vim's
  1124. global |'encoding'| option: >
  1125. let g:ctrlp_buftag_systemenc = &encoding
  1126. <
  1127. *'g:ctrlp_buftag_types'*
  1128. Use this to set the arguments for ctags, jsctags... for a given filetype: >
  1129. let g:ctrlp_buftag_types = ''
  1130. <
  1131. Examples: >
  1132. let g:ctrlp_buftag_types = {
  1133. \ 'erlang' : '--language-force=erlang --erlang-types=drmf',
  1134. \ 'javascript' : {
  1135. \ 'bin': 'jsctags',
  1136. \ 'args': '-f -',
  1137. \ },
  1138. \ }
  1139. <
  1140. ===============================================================================
  1141. CUSTOMIZATION *ctrlp-customization*
  1142. Highlighting:~
  1143. * For the CtrlP buffer:
  1144. CtrlPNoEntries : the message when no match is found (Error)
  1145. CtrlPMatch : the matched pattern (Identifier)
  1146. CtrlPLinePre : the line prefix '>' in the match window
  1147. CtrlPPrtBase : the prompt's base (Comment)
  1148. CtrlPPrtText : the prompt's text (|hl-Normal|)
  1149. CtrlPPrtCursor : the prompt's cursor when moving over the text (Constant)
  1150. * Buffer explorer mode:
  1151. CtrlPBufferNr : buffer number
  1152. CtrlPBufferInd : '+', '-', '=' and '#' indicators (see |:buffers|)
  1153. CtrlPBufferHid : hidden buffer
  1154. CtrlPBufferHidMod : hidden and modified buffer
  1155. CtrlPBufferVis : visible buffer
  1156. CtrlPBufferVisMod : visible and modified buffer
  1157. CtrlPBufferCur : current buffer
  1158. CtrlPBufferCurMod : current and modified buffer
  1159. CtrlPBufferPath : buffer path
  1160. * In extensions:
  1161. CtrlPTabExtra : the part of each line that's not matched against (Comment)
  1162. CtrlPBufName : the buffer name an entry belongs to (|hl-Directory|)
  1163. CtrlPTagKind : the kind of the tag in buffer-tag mode (|hl-Title|)
  1164. CtrlPqfLineCol : the line and column numbers in quickfix mode (Comment)
  1165. CtrlPUndoT : the elapsed time in undo mode (|hl-Directory|)
  1166. CtrlPUndoBr : the square brackets [] in undo mode (Comment)
  1167. CtrlPUndoNr : the undo number inside [] in undo mode (String)
  1168. CtrlPUndoSv : the point where the file was saved (Comment)
  1169. CtrlPUndoPo : the current position in the undo tree (|hl-Title|)
  1170. CtrlPBookmark : the name of the bookmark (Identifier)
  1171. Statuslines:~
  1172. * Highlight groups:
  1173. CtrlPMode1 : 'file' or 'path' or 'line', and the current mode (Character)
  1174. CtrlPMode2 : 'prt' or 'win', 'regex', the working directory (|hl-LineNr|)
  1175. CtrlPStats : the scanning status (Function)
  1176. For rebuilding the statuslines, see |g:ctrlp_status_func|.
  1177. ===============================================================================
  1178. MISCELLANEOUS CONFIGS *ctrlp-miscellaneous-configs*
  1179. * Using |wildignore| for |g:ctrlp_user_command|:
  1180. >
  1181. function! s:wig2cmd()
  1182. " Change wildignore into space or | separated groups
  1183. " e.g. .aux .out .toc .jpg .bmp .gif
  1184. " or .aux$\|.out$\|.toc$\|.jpg$\|.bmp$\|.gif$
  1185. let pats = ['[*\/]*\([?_.0-9A-Za-z]\+\)\([*\/]*\)\(\\\@<!,\|$\)','\\\@<!,']
  1186. let subs = has('win32') || has('win64') ? ['\1\3', ' '] : ['\1\2\3', '\\|']
  1187. let expr = substitute(&wig, pats[0], subs[0], 'g')
  1188. let expr = substitute(expr, pats[1], subs[1], 'g')
  1189. let expr = substitute(expr, '\\,', ',', 'g')
  1190. " Set the user_command option
  1191. let g:ctrlp_user_command = has('win32') || has('win64')
  1192. \ ? 'dir %s /-n /b /s /a-d | findstr /V /l "'.expr.'"'
  1193. \ : 'find %s -type f | grep -v "'.expr .'"'
  1194. endfunction
  1195. call s:wig2cmd()
  1196. <
  1197. (submitted by Rich Alesi <github.com/ralesi>)
  1198. * A standalone function to set the working directory to the project's root, or
  1199. to the parent directory of the current file if a root can't be found:
  1200. >
  1201. function! s:setcwd()
  1202. let cph = expand('%:p:h', 1)
  1203. if cph =~ '^.\+://' | retu | en
  1204. for mkr in ['.git/', '.hg/', '.svn/', '.bzr/', '_darcs/', '.vimprojects']
  1205. let wd = call('find'.(mkr =~ '/$' ? 'dir' : 'file'), [mkr, cph.';'])
  1206. if wd != '' | let &acd = 0 | brea | en
  1207. endfo
  1208. exe 'lc!' fnameescape(wd == '' ? cph : substitute(wd, mkr.'$', '.', ''))
  1209. endfunction
  1210. autocmd BufEnter * call s:setcwd()
  1211. <
  1212. (requires Vim 7.1.299+)
  1213. * Using a |count| to invoke different commands using the same mapping:
  1214. >
  1215. let g:ctrlp_cmd = 'exe "CtrlP".get(["", "Buffer", "MRU"], v:count)'
  1216. <
  1217. ===============================================================================
  1218. CREDITS *ctrlp-credits*
  1219. Originally developed by Kien Nguyen <github.com/kien>. Now maintained by the
  1220. members of the ctrlpvim Github organisation
  1221. (https://github.com/orgs/ctrlpvim/people). Distributed under Vim's |license|.
  1222. Project's homepage: http://ctrlpvim.github.com/ctrlp.vim
  1223. Git repository: https://github.com/ctrlpvim/ctrlp.vim
  1224. -------------------------------------------------------------------------------
  1225. Thanks to everyone that has submitted ideas, bug reports or helped debugging on
  1226. gibhub, bitbucket, and through email.
  1227. Special thanks:~
  1228. * Woojong Koh <github.com/wjkoh>
  1229. * Simon Ruderich
  1230. * Yasuhiro Matsumoto <github.com/mattn>
  1231. * Ken Earley <github.com/kenearley>
  1232. * Kyo Nagashima <github.com/hail2u>
  1233. * Zak Johnson <github.com/zakj>
  1234. * Diego Viola <github.com/diegoviola>
  1235. * Piet Delport <github.com/pjdelport>
  1236. * Thibault Duplessis <github.com/ornicar>
  1237. * Kent Sibilev <github.com/datanoise>
  1238. * Tacahiroy <github.com/tacahiroy>
  1239. * Luca Pette <github.com/lucapette>
  1240. * Seth Fowler <github.com/sfowler>
  1241. * Lowe Thiderman <github.com/thiderman>
  1242. * Christopher Fredén <github.com/icetan>
  1243. * Zahary Karadjov <github.com/zah>
  1244. * Jo De Boeck <github.com/grimpy>
  1245. * Rudi Grinberg <github.com/rgrinberg>
  1246. * Timothy Mellor <github.com/mellort>
  1247. * Sergey Vlasov <github.com/noscript>
  1248. ===============================================================================
  1249. CHANGELOG *ctrlp-changelog*
  1250. * New option |g:ctrlp_custom_tag_files| to specify custom tag files.
  1251. * Accept 0 for g:ctrlp_match_window no-limited window size.
  1252. Before 2016/11/28~
  1253. + New command: |YankLine()| to yank current line.
  1254. + New option: |g:ctrlp_types| to select builtin modes.
  1255. + New feature: asynchronized spawn of |g:ctrlp_user_command|. This enable
  1256. with set |g:ctrlp_user_command_async| to 1.
  1257. + Support buffertag for delphi, rust and golang.
  1258. + New option: |g:ctrlp_brief_prompt|,
  1259. |g:match_current_file|,
  1260. |g:ctrlp_compare_lim|.
  1261. + New feature: Auto-ignore extension.
  1262. + Support buffertag for ant, tex, dosbatch, matlab and vhdl.
  1263. + New option |g:ctrlp_line_prefix| for integrating third party plugins.
  1264. + New option |g:open_single_match| to open single file in matches.
  1265. + Add <plug>(ctrlp) for launch CtrlP.
  1266. + Accept bang for CtrlPBookmarkDirAdd to avoid confirm.
  1267. + Handle variable like "g:ctrlp_TYPE_MODE".
  1268. ex: let g:ctrlp_path_sort
  1269. + New option: |g:ctrlp_custom_ancestors|
  1270. Before 2014/08/08~
  1271. + New buffer explorer mode with highlighting (|+conceal| recommended)
  1272. + New options: |g:ctrlp_bufname_mod|,
  1273. |g:ctrlp_bufpath_mod|
  1274. + Combine *g:ctrlp_match_window_bottom* *g:ctrlp_match_window_reversed* and
  1275. *g:ctrlp_max_height* into |g:ctrlp_match_window|.
  1276. + New option: |g:ctrlp_match_window|.
  1277. Before 2012/11/30~
  1278. + New options: |g:ctrlp_abbrev|,
  1279. |g:ctrlp_key_loop|,
  1280. |g:ctrlp_open_func|,
  1281. |g:ctrlp_tabpage_position|,
  1282. |g:ctrlp_mruf_save_on_update|
  1283. + Rename:
  1284. *g:ctrlp_dotfiles* -> |g:ctrlp_show_hidden|.
  1285. + Change |g:ctrlp_switch_buffer|'s and |g:ctrlp_working_path_mode|'s type
  1286. (old values still work).
  1287. + New key for |g:ctrlp_user_command| when it's a Dictionary: 'ignore'.
  1288. Before 2012/06/15~
  1289. + New value for |g:ctrlp_follow_symlinks|: 2.
  1290. + New value for |g:ctrlp_open_multiple_files|: 'j'.
  1291. + Allow using <c-t>, <c-x>, <c-v> to open files marked by <c-z>.
  1292. + Extend '..' (|ctrlp-input-formats| (d))
  1293. + New input format: '@cd' (|ctrlp-input-formats| (d))
  1294. Before 2012/04/30~
  1295. + New option: |g:ctrlp_mruf_default_order|
  1296. + New feature: Bookmarked directories extension.
  1297. + New commands: |:CtrlPBookmarkDir|
  1298. |:CtrlPBookmarkDirAdd|
  1299. Before 2012/04/15~
  1300. + New option: |g:ctrlp_buffer_func|, callback functions for CtrlP buffer.
  1301. + Remove: g:ctrlp_mruf_last_entered, make it a default for MRU mode.
  1302. + New commands: |:CtrlPLastMode|, open CtrlP in the last mode used.
  1303. |:CtrlPMixed|, search in files, buffers and MRU files.
  1304. Before 2012/03/31~
  1305. + New options: |g:ctrlp_default_input|, default input when entering CtrlP.
  1306. |g:ctrlp_match_func|, allow using a custom fuzzy matcher.
  1307. + Rename:
  1308. *ClearCtrlPCache* -> |CtrlPClearCache|
  1309. *ClearAllCtrlPCaches* -> |CtrlPClearAllCaches|
  1310. *ResetCtrlP* -> |CtrlPReload|
  1311. Before 2012/03/02~
  1312. + Rename:
  1313. *g:ctrlp_regexp_search* -> |g:ctrlp_regexp|,
  1314. *g:ctrlp_dont_split* -> |g:ctrlp_reuse_window|,
  1315. *g:ctrlp_jump_to_buffer* -> |g:ctrlp_switch_buffer|.
  1316. + Rename and tweak:
  1317. *g:ctrlp_open_multi* -> |g:ctrlp_open_multiple_files|.
  1318. + Deprecate *g:ctrlp_highlight_match*
  1319. + Extend |g:ctrlp_user_command| to support multiple commands.
  1320. + New option: |g:ctrlp_mruf_last_entered| change MRU to Recently-Entered.
  1321. Before 2012/01/15~
  1322. + New mapping: Switch <tab> and <s-tab>. <tab> is now used for completion
  1323. of directory names under the current working directory.
  1324. + New options: |g:ctrlp_arg_map| for <c-y>, <c-o> to accept an argument.
  1325. |g:ctrlp_status_func| custom statusline.
  1326. |g:ctrlp_mruf_relative| show only MRU files inside cwd.
  1327. + Extend g:ctrlp_open_multi with new optional values: tr, hr, vr.
  1328. + Extend |g:ctrlp_custom_ignore| to specifically filter dir, file and link.
  1329. Before 2012/01/05~
  1330. + New feature: Buffer Tag extension.
  1331. + New commands: |:CtrlPBufTag|, |:CtrlPBufTagAll|.
  1332. + New options: |g:ctrlp_cmd|,
  1333. |g:ctrlp_custom_ignore|
  1334. Before 2011/11/30~
  1335. + New features: Tag, Quickfix and Directory extensions.
  1336. + New commands: |:CtrlPTag|, |:CtrlPQuickfix|, |:CtrlPDir|.
  1337. + New options: |g:ctrlp_use_migemo|,
  1338. |g:ctrlp_lazy_update|,
  1339. |g:ctrlp_follow_symlinks|
  1340. Before 2011/11/13~
  1341. + New special input: '/' and '\' find root (|ctrlp-input-formats| (e))
  1342. + Remove ctrlp#SetWorkingPath().
  1343. + Remove *g:ctrlp_mru_files* and make MRU mode permanent.
  1344. + Extend g:ctrlp_open_multi, add new ways to open files.
  1345. + New option: g:ctrlp_dont_split,
  1346. |g:ctrlp_mruf_case_sensitive|
  1347. Before 2011/10/30~
  1348. + New feature: Support for custom extensions.
  1349. <F5> also removes non-existent files from MRU list.
  1350. + New option: g:ctrlp_jump_to_buffer
  1351. Before 2011/10/12~
  1352. + New features: Open multiple files.
  1353. Pass Vim's |++opt| and |+cmd| to the opening file
  1354. (|ctrlp-input-formats| (c))
  1355. Auto-complete each dir for |:CtrlP| [starting-directory]
  1356. + New mappings: <c-z> mark/unmark a file to be opened with <c-o>.
  1357. <c-o> open all marked files.
  1358. + New option: g:ctrlp_open_multi
  1359. + Remove *g:ctrlp_persistent_input* *g:ctrlp_live_update* and <c-^>.
  1360. Before 2011/09/29~
  1361. + New mappings: <c-n>, <c-p> next/prev string in the input history.
  1362. <c-y> create a new file and its parent dirs.
  1363. + New options: |g:ctrlp_open_new_file|,
  1364. |g:ctrlp_max_history|
  1365. + Added a new open-in-horizontal-split mapping: <c-x>
  1366. Before 2011/09/19~
  1367. + New command: ResetCtrlP
  1368. + New options: |g:ctrlp_max_files|,
  1369. |g:ctrlp_max_depth|,
  1370. g:ctrlp_live_update
  1371. + New mapping: <c-^>
  1372. Before 2011/09/12~
  1373. + Ability to cycle through matched lines in the match window.
  1374. + Extend the behavior of g:ctrlp_persistent_input
  1375. + Extend the behavior of |:CtrlP|
  1376. + New options: |g:ctrlp_dotfiles|,
  1377. |g:ctrlp_clear_cache_on_exit|,
  1378. g:ctrlp_highlight_match,
  1379. |g:ctrlp_user_command|
  1380. + New special input: '..' (|ctrlp-input-formats| (d))
  1381. + New mapping: <F5>.
  1382. + New commands: |:CtrlPCurWD|,
  1383. |:CtrlPCurFile|,
  1384. |:CtrlPRoot|
  1385. + New feature: Search in most recently used (MRU) files
  1386. + New mapping: <c-b>.
  1387. + Extended the behavior of <c-f>.
  1388. + New options: g:ctrlp_mru_files,
  1389. |g:ctrlp_mruf_max|,
  1390. |g:ctrlp_mruf_exclude|,
  1391. |g:ctrlp_mruf_include|
  1392. + New command: |:CtrlPMRU|
  1393. First public release: 2011/09/06~
  1394. ===============================================================================
  1395. vim:ft=help:et:ts=2:sw=2:sts=2:norl