Update docs
This commit is contained in:
parent
f7561810bf
commit
7fc15428c1
@ -462,7 +462,7 @@ Structure of the functions: >
|
|||||||
" +- a:next : The next search mode.
|
" +- a:next : The next search mode.
|
||||||
" |
|
" |
|
||||||
" +- a:marked : The number of marked files, or a comma separated list of
|
" +- a:marked : The number of marked files, or a comma separated list of
|
||||||
" the filenames.
|
" the marked filenames.
|
||||||
|
|
||||||
return full_statusline
|
return full_statusline
|
||||||
endfunction
|
endfunction
|
||||||
@ -513,8 +513,8 @@ Structure of the function: >
|
|||||||
" | + "first-non-tab": match until the first tab char.
|
" | + "first-non-tab": match until the first tab char.
|
||||||
" | + "until-last-tab": match until the last tab char.
|
" | + "until-last-tab": match until the last tab char.
|
||||||
" |
|
" |
|
||||||
" +- a:ispath : Is 1 when searching in file, buffer, mru, dir, and rtscript
|
" +- a:ispath : Is 1 when searching in file, buffer, mru, mixed, dir, and
|
||||||
" | modes. Is 0 otherwise.
|
" | rtscript modes. Is 0 otherwise.
|
||||||
" |
|
" |
|
||||||
" +- a:crfile : The file in the current window. Should be excluded from the
|
" +- a:crfile : The file in the current window. Should be excluded from the
|
||||||
" | results when a:ispath == 1.
|
" | results when a:ispath == 1.
|
||||||
@ -534,6 +534,7 @@ COMMANDS *ctrlp-commands*
|
|||||||
|
|
||||||
If no argument is given, the value of |g:ctrlp_working_path_mode| will be
|
If no argument is given, the value of |g:ctrlp_working_path_mode| will be
|
||||||
used to determine the starting directory.
|
used to determine the starting directory.
|
||||||
|
|
||||||
You can use <tab> to auto-complete the [starting-directory] when typing it.
|
You can use <tab> to auto-complete the [starting-directory] when typing it.
|
||||||
|
|
||||||
*:CtrlPBuffer*
|
*:CtrlPBuffer*
|
||||||
@ -550,8 +551,8 @@ COMMANDS *ctrlp-commands*
|
|||||||
|
|
||||||
*:CtrlPRoot*
|
*:CtrlPRoot*
|
||||||
:CtrlPRoot
|
:CtrlPRoot
|
||||||
This acts like |:CtrlP| with |g:ctrlp_working_path_mode| = 2 (ignores its
|
This acts like |:CtrlP| with |g:ctrlp_working_path_mode| = 2 (ignores the
|
||||||
current value).
|
variable's current value).
|
||||||
|
|
||||||
*:CtrlPClearCache*
|
*:CtrlPClearCache*
|
||||||
:CtrlPClearCache
|
:CtrlPClearCache
|
||||||
@ -561,7 +562,7 @@ COMMANDS *ctrlp-commands*
|
|||||||
|
|
||||||
*:CtrlPClearAllCaches*
|
*:CtrlPClearAllCaches*
|
||||||
:CtrlPClearAllCaches
|
:CtrlPClearAllCaches
|
||||||
Delete all the cache files saved in |g:ctrlp_cache_dir|.
|
Delete all the cache files saved in |g:ctrlp_cache_dir| location.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
For commands provided by bundled extensions, see |ctrlp-extensions|.
|
For commands provided by bundled extensions, see |ctrlp-extensions|.
|
||||||
@ -605,7 +606,7 @@ Once inside the prompt:~
|
|||||||
<c-c>
|
<c-c>
|
||||||
Exit CtrlP.
|
Exit CtrlP.
|
||||||
|
|
||||||
Movement:~
|
Moving:~
|
||||||
|
|
||||||
<c-j>,
|
<c-j>,
|
||||||
<down>
|
<down>
|
||||||
@ -645,7 +646,7 @@ Editing:~
|
|||||||
<c-u>
|
<c-u>
|
||||||
Clear the input field.
|
Clear the input field.
|
||||||
|
|
||||||
Input history:~
|
Browsing input history:~
|
||||||
|
|
||||||
<c-n>
|
<c-n>
|
||||||
Next string in the prompt's history.
|
Next string in the prompt's history.
|
||||||
@ -653,26 +654,26 @@ Input history:~
|
|||||||
<c-p>
|
<c-p>
|
||||||
Previous string in the prompt's history.
|
Previous string in the prompt's history.
|
||||||
|
|
||||||
Open a file:~
|
Opening/Creating a file:~
|
||||||
|
|
||||||
<cr>
|
<cr>
|
||||||
Open selected file in the active window if possible.
|
Open the selected file in the 'current' window if possible.
|
||||||
|
|
||||||
<c-t>
|
<c-t>
|
||||||
Open selected file in a new 'tab' after the last tabpage.
|
Open the selected file in a new 'tab' after the last tabpage.
|
||||||
|
|
||||||
<c-v>
|
<c-v>
|
||||||
Open selected file in a 'vertical' split.
|
Open the selected file in a 'vertical' split.
|
||||||
|
|
||||||
<c-x>,
|
<c-x>,
|
||||||
<c-cr>,
|
<c-cr>,
|
||||||
<c-s>
|
<c-s>
|
||||||
Open selected file in a 'horizontal' split.
|
Open the selected file in a 'horizontal' split.
|
||||||
|
|
||||||
<c-y>
|
<c-y>
|
||||||
Create a new file and its parent directories.
|
Create a new file and its parent directories.
|
||||||
|
|
||||||
Open multiple files:~
|
Opening multiple files:~
|
||||||
|
|
||||||
<c-z>
|
<c-z>
|
||||||
- Mark/unmark a file to be opened with <c-o>.
|
- Mark/unmark a file to be opened with <c-o>.
|
||||||
@ -766,7 +767,7 @@ e) Similarly, submit '/' or '\' to find and go to the project's root.
|
|||||||
might help speeding up the intial scan (see |g:ctrlp_user_command| for more
|
might help speeding up the intial scan (see |g:ctrlp_user_command| for more
|
||||||
details).
|
details).
|
||||||
|
|
||||||
Note: e) and d) only work in file, directory and mixed modes.
|
Note: d) and e) only work in file, directory and mixed modes.
|
||||||
|
|
||||||
f) Type the name of a non-existent file and press <c-y> to create it. Mark a
|
f) Type the name of a non-existent file and press <c-y> to create it. Mark a
|
||||||
file with <c-z> to create the new file in the same directory as the marked
|
file with <c-z> to create the new file in the same directory as the marked
|
||||||
@ -989,7 +990,6 @@ MISCELLANEOUS CONFIGS *ctrlp-miscellaneous-configs*
|
|||||||
|
|
||||||
* Using a |count| to invoke different commands using the same mapping:
|
* Using a |count| to invoke different commands using the same mapping:
|
||||||
>
|
>
|
||||||
let g:ctrlp_map = '<leader>f'
|
|
||||||
let g:ctrlp_cmd = 'exe "CtrlP".get(["", "Buffer", "MRU"], v:count)'
|
let g:ctrlp_cmd = 'exe "CtrlP".get(["", "Buffer", "MRU"], v:count)'
|
||||||
<
|
<
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user