-
-
Save davidmh/9011182 to your computer and use it in GitHub Desktop.
Accelerate CtrlP by ignoring certain files and paths. Including node modules and grunt's .tmp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Ignore some folders and files for CtrlP indexing | |
let g:ctrlp_custom_ignore = { | |
\ 'dir': '\.git$\|\.yardoc\|node_modules\|log\|tmp$', | |
\ 'file': '\.so$\|\.dat$|\.DS_Store$' | |
\ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FWIW, if you don't care about files outside of source control, you can use source control itself as a source-of-truth for
ctrlp_user_command
. This also honors.gitignore
et. al. Per:help ctrlp_user_command