Skip to content

Instantly share code, notes, and snippets.

@Ji-Yuhang
Created May 25, 2016 02:51
Show Gist options
  • Save Ji-Yuhang/b2370b634582ce28b670877e67be5ee7 to your computer and use it in GitHub Desktop.
Save Ji-Yuhang/b2370b634582ce28b670877e67be5ee7 to your computer and use it in GitHub Desktop.
ctrlp-still-searches-the-ignored-directory
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