ctrlpvim / ctrlp.vim

Active fork of kien/ctrlp.vim—Fuzzy file, buffer, mru, tag, etc finder.
ctrlpvim.github.com/ctrlp.vim
Other
5.58k stars 260 forks source link

Problem using ctrlp_custom_ignore #602

Closed lsiden closed 2 years ago

lsiden commented 2 years ago

I need better documentation explaining _ctrlp_customignore. I put this in .vimrc but it had no effect:

"let g:ctrlp_custom_ignore = { 'dir': '(__pycache__|venv|build)$' }

It just takes a regular expression, right?

tacahiroy commented 2 years ago

With basic Vim's regexp the configuration would be like either of examples below:

let g:ctrlp_custom_ignore = { 'dir': '\v(__pycache__|venv|build)$' }

or

let g:ctrlp_custom_ignore = { 'dir': '\(__pycache__\|venv\|build\)$' }

If none of them works can you show me all ctrlp related configs in your vimrc please.