Created
May 25, 2016 02:51
-
-
Save Ji-Yuhang/b2370b634582ce28b670877e67be5ee7 to your computer and use it in GitHub Desktop.
ctrlp-still-searches-the-ignored-directory
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
if has("mac") | |
let g:ctrlp_user_command = 'gfind %s -type f' | |
" Sane Ignore For ctrlp | |
endif | |
if exists("g:ctrlp_user_command") | |
unlet g:ctrlp_user_command | |
endif | |
set wildignore+=*\\vendor\\** | |
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 = 'node_modules\|DS_Store\|git' | |
let g:ctrlp_custom_ignore = { | |
\ 'dir': '\.git$\|\.hg$\|\.svn$\|\.yardoc\|public\/images\|public\/system\|data\|log\|tmp$', | |
\ 'file': '\.exe$\|\.so$\|\.dat$', | |
\ 'link': 'some_bad_symbolic_links', | |
\ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment