From ba935d9ea4aa2fb7bcd265e14191de0b9a827b0c Mon Sep 17 00:00:00 2001 From: Kien N Date: Tue, 6 Sep 2011 07:00:33 +0700 Subject: [PATCH] fix readme --- readme.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/readme.md b/readme.md index 055159f..040130b 100644 --- a/readme.md +++ b/readme.md @@ -8,17 +8,12 @@ Full path fuzzy file and buffer finder for Vim. ## Basic Usage * Press `` or run `:CtrlP` to invoke CtrlP. -* Ever remember only a file’s name but not where it is? -Press `` while CtrlP is open to switch to filename only search. -Press `` again to switch back to full path search. -* Use `*` `?` `^` `+` or `|` in the prompt to submit the string as a Vim’s -regexp pattern. -Or press `` 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 file’s name but not where it is? Press `` while CtrlP is open to switch to filename only search. +* Use `*` `?` `^` `+` or `|` in the prompt to submit the string as a Vim’s regexp pattern. +* Press `` 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 `` to toggle find buffer mode/find file mode while CtrlP is open. -Run `:CtrlPBuffer` to start CtrlP in find buffer mode. +* Press `` 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 - don’t manage working directory. + 0 - don’t manage working directory. 1 - the parent directory of the current file. 2 - the nearest ancestor that contains one of these directories or files: