fix readme

This commit is contained in:
Kien N 2011-09-06 07:00:33 +07:00
parent 48c91d85fc
commit ba935d9ea4

View File

@ -8,17 +8,12 @@ Full path fuzzy file and buffer finder for Vim.
## Basic Usage
* Press `<c-p>` or run `:CtrlP` to invoke CtrlP.
* Ever remember only a files name but not where it is?
Press `<c-d>` while CtrlP is open to switch to filename only search.
Press `<c-d>` again to switch back to full path search.
* Use `*` `?` `^` `+` or `|` in the prompt to submit the string as a Vims
regexp pattern.
Or press `<c-r>` to switch to full regexp mode.
* End the input string with a colon `:` followed by a number to jump to that
line in the selected file.
* Ever remember only a files name but not where it is? Press `<c-d>` while CtrlP is open to switch to filename only search.
* Use `*` `?` `^` `+` or `|` in the prompt to submit the string as a Vims regexp pattern.
* Press `<c-r>` to switch to full regexp mode.
* End the input string with a colon `:` followed by a number to jump to that line in the selected file.
e.g. `abc:45` to open the file matched the pattern and jump to line 45.
* Press `<c-f>` to toggle find buffer mode/find file mode while CtrlP is open.
Run `:CtrlPBuffer` to start CtrlP in find buffer mode.
* Press `<c-f>` to toggle find buffer mode/find file mode while CtrlP is open.
_Screenshot: filename only mode with the match window focused._
![ctrlp filename mode, match window focused][2]
@ -35,7 +30,7 @@ to this variable:
let g:ctrlp_working_path_mode = 1
```
0 - dont manage working directory.
0 - dont manage working directory.
1 - the parent directory of the current file.
2 - the nearest ancestor that contains one of these directories or files: