diff --git a/doc/ctrlp.txt b/doc/ctrlp.txt index f0b71a4..21c0333 100644 --- a/doc/ctrlp.txt +++ b/doc/ctrlp.txt @@ -210,8 +210,8 @@ You can use Vim's |'wildignore'| to exclude files and directories from the results. Examples: > " Excluding version control directories - set wildignore+=*/.git/*,*/.hg/*,*/.svn/* " Linux/MacOSX - set wildignore+=.git\*,.hg\*,.svn\* " Windows + set wildignore+=*/.git/*,*/.hg/*,*/.svn/* " Linux/MacOSX + set wildignore+=*\\.git\\*,*\\.hg\\*,*\\.svn\\* " Windows ('noshellslash') < Note #1: the `*/` in front of each directory glob is required. diff --git a/readme.md b/readme.md index 368bfd1..824d2a8 100644 --- a/readme.md +++ b/readme.md @@ -33,8 +33,8 @@ Run `:help ctrlp-mappings` or submit `?` in CtrlP for more mapping help. * End the input string with a colon `:` followed by a command to execute it on the opening file(s): Use `:25` to jump to line 25. Use `:/any\:\ string` to jump to the first instance of `any: string`. -Use `:+setf\ myfiletype|25` to set the filetype to myfiletype, then jump to line 25. -Use `:difft` when opening multiple files to run `:difft` on the first 4 files. +Use `:+setfiletype\ myfiletype|25` to set the filetype to myfiletype, then jump to line 25. +Use `:diffthis` when opening multiple files to run `:diffthis` on the first 4 files. ## Basic Options * Change the default mapping and the default command to invoke CtrlP: @@ -60,8 +60,8 @@ Use `:difft` when opening multiple files to run `:difft` on the first 4 files. * Exclude files and directories using Vim's `wildignore` and CtrlP's own `g:ctrlp_custom_ignore`: ```vim - set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux - set wildignore+=tmp\*,*.swp,*.zip,*.exe " Windows + set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux + set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows let g:ctrlp_custom_ignore = '\v(\.git|\.hg|\.svn)($|[\/])' let g:ctrlp_custom_ignore = {