Update readme

This commit is contained in:
Kien N 2012-07-19 23:52:20 +07:00
parent 78c24354db
commit 2927ce4eab

View File

@ -19,10 +19,10 @@ Full path fuzzy __file__, __buffer__, __mru__, __tag__, __...__ finder for Vim.
Check `:help ctrlp-commands` and `:help ctrlp-extensions` for other commands. Check `:help ctrlp-commands` and `:help ctrlp-extensions` for other commands.
##### Once CtrlP is open: ##### Once CtrlP is open:
* Press `<F5>` to purge the cache for the current directory to get new files, remove deleted files and apply new ignore options.
* Press `<c-f>` and `<c-b>` to cycle between modes. * Press `<c-f>` and `<c-b>` to cycle between modes.
* Press `<c-d>` to switch to filename only search instead of full path. * Press `<c-d>` to switch to filename only search instead of full path.
* Press `<c-r>` to switch to regexp mode. * Press `<c-r>` to switch to regexp mode.
* Press `<F5>` to purge the cache for the current directory and get new files.
* Use `<c-n>`, `<c-p>` to select the next/previous string in the prompt's history. * Use `<c-n>`, `<c-p>` to select the next/previous string in the prompt's history.
* Use `<c-y>` to create a new file and its parent directories. * Use `<c-y>` to create a new file and its parent directories.
* Use `<c-z>` to mark/unmark multiple files and `<c-o>` to open them. * Use `<c-z>` to mark/unmark multiple files and `<c-o>` to open them.
@ -43,8 +43,7 @@ Use `:difft` when opening multiple files to run `:difft` on the first 4 files.
let g:ctrlp_cmd = 'CtrlP' let g:ctrlp_cmd = 'CtrlP'
``` ```
* When invoked, unless a starting directory is specified, CtrlP will set its local working directory * When invoked, unless a starting directory is specified, CtrlP will set its local working directory according to this variable:
according to this variable:
```vim ```vim
let g:ctrlp_working_path_mode = 2 let g:ctrlp_working_path_mode = 2