Permalink
Browse files

update

  • Loading branch information...
jmoiron committed May 24, 2017
1 parent 1b33e85 commit 3d5553f81c7630b9bf2aeb20d7b66b6ea760ee85
Showing with 40 additions and 121 deletions.
  1. +0 −100 home/.vim/bundle/ctrlp.vim/doc/tags
  2. +13 −11 home/.vim/bundle/ctrlp.vim/plugin/ctrlp.vim
  3. +27 −10 home/.vim/bundle/ctrlp.vim/readme.md
@@ -1,100 +0,0 @@
'ctrl-p' ctrlp.txt /*'ctrl-p'*
'ctrlp' ctrlp.txt /*'ctrlp'*
'ctrlp-<c-p>' ctrlp.txt /*'ctrlp-<c-p>'*
'ctrlp-autocompletion' ctrlp.txt /*'ctrlp-autocompletion'*
'ctrlp-fullregexp' ctrlp.txt /*'ctrlp-fullregexp'*
'ctrlp-pasting' ctrlp.txt /*'ctrlp-pasting'*
'ctrlp-wildignore' ctrlp.txt /*'ctrlp-wildignore'*
'g:ctrlp_abbrev' ctrlp.txt /*'g:ctrlp_abbrev'*
'g:ctrlp_arg_map' ctrlp.txt /*'g:ctrlp_arg_map'*
'g:ctrlp_buffer_func' ctrlp.txt /*'g:ctrlp_buffer_func'*
'g:ctrlp_buftag_ctags_bin' ctrlp.txt /*'g:ctrlp_buftag_ctags_bin'*
'g:ctrlp_buftag_systemenc' ctrlp.txt /*'g:ctrlp_buftag_systemenc'*
'g:ctrlp_buftag_types' ctrlp.txt /*'g:ctrlp_buftag_types'*
'g:ctrlp_by_filename' ctrlp.txt /*'g:ctrlp_by_filename'*
'g:ctrlp_cache_dir' ctrlp.txt /*'g:ctrlp_cache_dir'*
'g:ctrlp_clear_cache_on_exit' ctrlp.txt /*'g:ctrlp_clear_cache_on_exit'*
'g:ctrlp_cmd' ctrlp.txt /*'g:ctrlp_cmd'*
'g:ctrlp_custom_ignore' ctrlp.txt /*'g:ctrlp_custom_ignore'*
'g:ctrlp_default_input' ctrlp.txt /*'g:ctrlp_default_input'*
'g:ctrlp_follow_symlinks' ctrlp.txt /*'g:ctrlp_follow_symlinks'*
'g:ctrlp_key_loop' ctrlp.txt /*'g:ctrlp_key_loop'*
'g:ctrlp_lazy_update' ctrlp.txt /*'g:ctrlp_lazy_update'*
'g:ctrlp_map' ctrlp.txt /*'g:ctrlp_map'*
'g:ctrlp_match_func' ctrlp.txt /*'g:ctrlp_match_func'*
'g:ctrlp_match_window' ctrlp.txt /*'g:ctrlp_match_window'*
'g:ctrlp_max_depth' ctrlp.txt /*'g:ctrlp_max_depth'*
'g:ctrlp_max_files' ctrlp.txt /*'g:ctrlp_max_files'*
'g:ctrlp_max_history' ctrlp.txt /*'g:ctrlp_max_history'*
'g:ctrlp_mruf_case_sensitive' ctrlp.txt /*'g:ctrlp_mruf_case_sensitive'*
'g:ctrlp_mruf_default_order' ctrlp.txt /*'g:ctrlp_mruf_default_order'*
'g:ctrlp_mruf_exclude' ctrlp.txt /*'g:ctrlp_mruf_exclude'*
'g:ctrlp_mruf_include' ctrlp.txt /*'g:ctrlp_mruf_include'*
'g:ctrlp_mruf_max' ctrlp.txt /*'g:ctrlp_mruf_max'*
'g:ctrlp_mruf_relative' ctrlp.txt /*'g:ctrlp_mruf_relative'*
'g:ctrlp_mruf_save_on_update' ctrlp.txt /*'g:ctrlp_mruf_save_on_update'*
'g:ctrlp_open_func' ctrlp.txt /*'g:ctrlp_open_func'*
'g:ctrlp_open_multiple_files' ctrlp.txt /*'g:ctrlp_open_multiple_files'*
'g:ctrlp_open_new_file' ctrlp.txt /*'g:ctrlp_open_new_file'*
'g:ctrlp_prompt_mappings' ctrlp.txt /*'g:ctrlp_prompt_mappings'*
'g:ctrlp_regexp' ctrlp.txt /*'g:ctrlp_regexp'*
'g:ctrlp_reuse_window' ctrlp.txt /*'g:ctrlp_reuse_window'*
'g:ctrlp_root_markers' ctrlp.txt /*'g:ctrlp_root_markers'*
'g:ctrlp_show_hidden' ctrlp.txt /*'g:ctrlp_show_hidden'*
'g:ctrlp_status_func' ctrlp.txt /*'g:ctrlp_status_func'*
'g:ctrlp_switch_buffer' ctrlp.txt /*'g:ctrlp_switch_buffer'*
'g:ctrlp_tabpage_position' ctrlp.txt /*'g:ctrlp_tabpage_position'*
'g:ctrlp_use_caching' ctrlp.txt /*'g:ctrlp_use_caching'*
'g:ctrlp_use_migemo' ctrlp.txt /*'g:ctrlp_use_migemo'*
'g:ctrlp_user_command' ctrlp.txt /*'g:ctrlp_user_command'*
'g:ctrlp_working_path_mode' ctrlp.txt /*'g:ctrlp_working_path_mode'*
'g:loaded_ctrlp' ctrlp.txt /*'g:loaded_ctrlp'*
:CtrlP ctrlp.txt /*:CtrlP*
:CtrlPBookmarkDir ctrlp.txt /*:CtrlPBookmarkDir*
:CtrlPBookmarkDirAdd ctrlp.txt /*:CtrlPBookmarkDirAdd*
:CtrlPBufTag ctrlp.txt /*:CtrlPBufTag*
:CtrlPBufTagAll ctrlp.txt /*:CtrlPBufTagAll*
:CtrlPBuffer ctrlp.txt /*:CtrlPBuffer*
:CtrlPChange ctrlp.txt /*:CtrlPChange*
:CtrlPChangeAll ctrlp.txt /*:CtrlPChangeAll*
:CtrlPClearAllCaches ctrlp.txt /*:CtrlPClearAllCaches*
:CtrlPClearCache ctrlp.txt /*:CtrlPClearCache*
:CtrlPDir ctrlp.txt /*:CtrlPDir*
:CtrlPLastMode ctrlp.txt /*:CtrlPLastMode*
:CtrlPLine ctrlp.txt /*:CtrlPLine*
:CtrlPMRU ctrlp.txt /*:CtrlPMRU*
:CtrlPMixed ctrlp.txt /*:CtrlPMixed*
:CtrlPQuickfix ctrlp.txt /*:CtrlPQuickfix*
:CtrlPRTS ctrlp.txt /*:CtrlPRTS*
:CtrlPRoot ctrlp.txt /*:CtrlPRoot*
:CtrlPTag ctrlp.txt /*:CtrlPTag*
:CtrlPUndo ctrlp.txt /*:CtrlPUndo*
ClearAllCtrlPCaches ctrlp.txt /*ClearAllCtrlPCaches*
ClearCtrlPCache ctrlp.txt /*ClearCtrlPCache*
ControlP ctrlp.txt /*ControlP*
CtrlP ctrlp.txt /*CtrlP*
ResetCtrlP ctrlp.txt /*ResetCtrlP*
ctrlp-changelog ctrlp.txt /*ctrlp-changelog*
ctrlp-commands ctrlp.txt /*ctrlp-commands*
ctrlp-contents ctrlp.txt /*ctrlp-contents*
ctrlp-credits ctrlp.txt /*ctrlp-credits*
ctrlp-customization ctrlp.txt /*ctrlp-customization*
ctrlp-extensions ctrlp.txt /*ctrlp-extensions*
ctrlp-input-formats ctrlp.txt /*ctrlp-input-formats*
ctrlp-intro ctrlp.txt /*ctrlp-intro*
ctrlp-mappings ctrlp.txt /*ctrlp-mappings*
ctrlp-miscellaneous-configs ctrlp.txt /*ctrlp-miscellaneous-configs*
ctrlp-options ctrlp.txt /*ctrlp-options*
ctrlp.txt ctrlp.txt /*ctrlp.txt*
g:ctrlp_dont_split ctrlp.txt /*g:ctrlp_dont_split*
g:ctrlp_dotfiles ctrlp.txt /*g:ctrlp_dotfiles*
g:ctrlp_highlight_match ctrlp.txt /*g:ctrlp_highlight_match*
g:ctrlp_jump_to_buffer ctrlp.txt /*g:ctrlp_jump_to_buffer*
g:ctrlp_live_update ctrlp.txt /*g:ctrlp_live_update*
g:ctrlp_match_window_bottom ctrlp.txt /*g:ctrlp_match_window_bottom*
g:ctrlp_match_window_reversed ctrlp.txt /*g:ctrlp_match_window_reversed*
g:ctrlp_max_height ctrlp.txt /*g:ctrlp_max_height*
g:ctrlp_mru_files ctrlp.txt /*g:ctrlp_mru_files*
g:ctrlp_open_multi ctrlp.txt /*g:ctrlp_open_multi*
g:ctrlp_persistent_input ctrlp.txt /*g:ctrlp_persistent_input*
g:ctrlp_regexp_search ctrlp.txt /*g:ctrlp_regexp_search*
@@ -18,9 +18,9 @@ if !exists('g:ctrlp_map') | let g:ctrlp_map = '<c-p>' | en
if !exists('g:ctrlp_cmd') | let g:ctrlp_cmd = 'CtrlP' | en
com! -n=? -com=dir CtrlP cal ctrlp#init(0, { 'dir': <q-args> })
com! -n=? -com=dir CtrlPMRUFiles cal ctrlp#init(2, { 'dir': <q-args> })
com! -n=? -com=dir CtrlPMRUFiles cal ctrlp#init('mru', { 'dir': <q-args> })
com! -bar CtrlPBuffer cal ctrlp#init(1)
com! -bar CtrlPBuffer cal ctrlp#init('buf')
com! -n=? CtrlPLastMode cal ctrlp#init(-1, { 'args': <q-args> })
com! -bar CtrlPClearCache cal ctrlp#clr()
@@ -29,12 +29,14 @@ com! -bar CtrlPClearAllCaches cal ctrlp#clra()
com! -bar ClearCtrlPCache cal ctrlp#clr()
com! -bar ClearAllCtrlPCaches cal ctrlp#clra()
com! -bar CtrlPCurWD cal ctrlp#init(0, { 'mode': '' })
com! -bar CtrlPCurFile cal ctrlp#init(0, { 'mode': 'c' })
com! -bar CtrlPRoot cal ctrlp#init(0, { 'mode': 'r' })
com! -bar CtrlPCurWD cal ctrlp#init('fil', { 'mode': '' })
com! -bar CtrlPCurFile cal ctrlp#init('fil', { 'mode': 'c' })
com! -bar CtrlPRoot cal ctrlp#init('fil', { 'mode': 'r' })
if g:ctrlp_map != '' && !hasmapto(':<c-u>'.g:ctrlp_cmd.'<cr>', 'n')
exe 'nn <silent>' g:ctrlp_map ':<c-u>'.g:ctrlp_cmd.'<cr>'
exe 'nn <silent> <plug>(ctrlp) :<c-u>'.g:ctrlp_cmd.'<cr>'
if g:ctrlp_map != '' && !hasmapto('<plug>(ctrlp)')
exe 'map' g:ctrlp_map '<plug>(ctrlp)'
en
cal ctrlp#mrufiles#init()
@@ -53,16 +55,16 @@ com! -bar CtrlPRTS cal ctrlp#init(ctrlp#rtscript#id())
com! -bar CtrlPUndo cal ctrlp#init(ctrlp#undo#id())
com! -n=? -com=buffer CtrlPLine
\ cal ctrlp#init(ctrlp#line#cmd(1, <q-args>))
\ cal ctrlp#init(ctrlp#line#cmd('buf', <q-args>))
com! -n=? -com=buffer CtrlPChange
\ cal ctrlp#init(ctrlp#changes#cmd(0, <q-args>))
\ cal ctrlp#init(ctrlp#changes#cmd('fil', <q-args>))
com! -bar CtrlPChangeAll cal ctrlp#init(ctrlp#changes#cmd(1))
com! -bar CtrlPMixed cal ctrlp#init(ctrlp#mixed#id())
com! -bar CtrlPBookmarkDir cal ctrlp#init(ctrlp#bookmarkdir#id())
com! -n=? -com=dir CtrlPBookmarkDirAdd
\ cal ctrlp#call('ctrlp#bookmarkdir#add', <q-args>)
com! -n=? -com=dir -bang CtrlPBookmarkDirAdd
\ cal ctrlp#call('ctrlp#bookmarkdir#add', '<bang>', <q-args>)
" vim:ts=2:sw=2:sts=2
@@ -32,8 +32,8 @@ Check `:help ctrlp-commands` and `:help ctrlp-extensions` for other commands.
Run `:help ctrlp-mappings` or submit `?` in CtrlP for more mapping help.
* Submit two or more dots `..` to go up the directory tree by one or multiple levels.
* End the input string with a colon `:` followed by a command to execute it on the opening file(s):
Use `:25` to jump to line 25.
* End the input string with a colon `:` followed by a command to execute it on the opening file(s):
Use `:25` to jump to line 25.
Use `:diffthis` when opening multiple files to run `:diffthis` on the first 4 files.
## Basic Options
@@ -44,20 +44,31 @@ Use `:diffthis` when opening multiple files to run `:diffthis` on the first 4 fi
let g:ctrlp_cmd = 'CtrlP'
```
* When invoked, unless a starting directory is specified, CtrlP will set its local working directory according to this variable:
* When invoked without an explicit starting directory, CtrlP will set its local working directory according to this variable:
```vim
let g:ctrlp_working_path_mode = 'ra'
```
`'c'` - the directory of the current file.
`'r'` - the nearest ancestor that contains one of these directories or files: `.git` `.hg` `.svn` `.bzr` `_darcs`
`'a'` - like c, but only if the current working directory outside of CtrlP is not a direct ancestor of the directory of the current file.
`'a'` - the directory of the current file, unless it is a subdirectory of the cwd
`'r'` - the nearest ancestor of the current file that contains one of these directories or files: `.git` `.hg` `.svn` `.bzr` `_darcs`
`'w'` - modifier to "r": start search from the cwd instead of the current file's directory
`0` or `''` (empty string) - disable this feature.
Define additional root markers with the `g:ctrlp_root_markers` option.
If none of the default markers (`.git` `.hg` `.svn` `.bzr` `_darcs`) are present in a project, you can define additional ones with `g:ctrlp_root_markers`:
* Exclude files and directories using Vim's `wildignore` and CtrlP's own `g:ctrlp_custom_ignore`:
```vim
let g:ctrlp_root_markers = ['pom.xml', '.p4ignore']
```
If more than one mode is specified, they will be tried in order until a directory is located.
* If a file is already open, open it again in a new pane instead of switching to the existing pane
`let g:ctrlp_switch_buffer = 'et'`
* Exclude files and directories using Vim's `wildignore` and CtrlP's own `g:ctrlp_custom_ignore`. If a custom listing command is being used, exclusions are ignored:
```vim
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
@@ -78,11 +89,17 @@ Use `:diffthis` when opening multiple files to run `:diffthis` on the first 4 fi
let g:ctrlp_user_command = 'dir %s /-n /b /s /a-d' " Windows
```
* Ignore files in `.gitignore`
```vim
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
```
Check `:help ctrlp-options` for other options.
## Installation
Use your favorite method or check the homepage for a [quick installation guide][3].
[1]: http://i.imgur.com/yIynr.png
[2]: https://github.com/kien/ctrlp.vim/tree/extensions
[3]: http://kien.github.com/ctrlp.vim#installation
[1]: http://i.imgur.com/aOcwHwt.png
[2]: https://github.com/ctrlpvim/ctrlp.vim/tree/extensions
[3]: http://ctrlpvim.github.com/ctrlp.vim#installation

0 comments on commit 3d5553f

Please sign in to comment.