CtrlP命令

来源:互联网 发布:视频特效制作软件哪些 编辑:程序博客网 时间:2024/06/05 18:07

COMMANDS                                                       *ctrlp-commands*                                                                       *:CtrlP*:CtrlP [starting-directory]   Open CtrlP in find file mode.   If no argument is given, the value of |g:ctrlp_working_path_mode| will be   used to determine the starting directory.   You can use <tab> to auto-complete the [starting-directory] when typing it.                                                                 *:CtrlPBuffer*:CtrlPBuffer   Open CtrlP in find buffer mode.                                                                    *:CtrlPMRU*:CtrlPMRU   Open CtrlP in find Most-Recently-Used file mode.                                                               *:CtrlPLastMode*:CtrlPLastMode [--dir]   Open CtrlP in the last mode used. When having the "--dir" argument, also   reuse the last working directory.Once inside the prompt:~  <c-d>    Toggle between full-path search and filename only search.    Note: in filename mode, the prompt's base is '>d>' instead of '>>>'  <c-r>                                                    *'ctrlp-fullregexp'*    Toggle between the string mode and full regexp mode.    Note: in full regexp mode, the prompt's base is 'r>>' instead of '>>>'    See also: |input-formats| (guide) and |g:ctrlp_regexp_search| (option).  <c-f>, 'forward'  <c-up>    Scroll to the 'next' search mode in the sequence.  <c-b>, 'backward'  <c-down>    Scroll to the 'previous' search mode in the sequence.  <tab>                                                *'ctrlp-autocompletion'*    Auto-complete directory names under the current working directory inside    the prompt.  <s-tab>    Toggle the focus between the match window and the prompt.  <esc>,  <c-c>    Exit CtrlP.Moving:~  <c-j>,  <down>    Move selection down.  <c-k>,  <up>    Move selection up.  <c-a>    Move the cursor to the 'start' of the prompt.  <c-e>    Move the cursor to the 'end' of the prompt.  <c-h>,  <left>,  <c-^>    Move the cursor one character to the 'left'.  <c-l>,  <right>    Move the cursor one character to the 'right'.Browsing input history:~  <c-n>    Next string in the prompt's history.  <c-p>    Previous string in the prompt's history.Opening/Creating a file:~  <cr>    Open the selected file in the 'current' window if possible.  <c-t>    Open the selected file in a new 'tab'.  <c-v>    Open the selected file in a 'vertical' split.  <c-x>,  <c-cr>,  <c-s>    Open the selected file in a 'horizontal' split.  <c-y>    Create a new file and its parent directories.Opening multiple files:~  <c-z>    - Mark/unmark a file to be opened with <c-o>.    - Mark/unmark a file to create a new file in its directory using <c-y>.  <c-o>    - Open files marked by <c-z>.    - When no file has been marked by <c-z>, open a console dialog with the      following options:      Open the selected file:        t - in a tab page.        v - in a vertical split.        h - in a horizontal split.        r - in the current window.        i - as a hidden buffer.        x - (optional) with the function defined in |g:ctrlp_open_func|.      Other options (not shown):        a - mark all files in the match window.        d - change CtrlP's local working directory to the selected file's            directory and switch to find file mode.Function keys:~  <F5>    - Refresh the match window and purge the cache for the current directory.    - Remove deleted files from the MRU list.  <F7>    - Wipe the MRU list.    - Delete MRU entries marked by <c-z>.

原创粉丝点击