Skip to content

Instantly share code, notes, and snippets.

@seyDoggy
Created December 3, 2014 14:02
Show Gist options
  • Select an option

  • Save seyDoggy/613f2648cebc6c7b456f to your computer and use it in GitHub Desktop.

Select an option

Save seyDoggy/613f2648cebc6c7b456f to your computer and use it in GitHub Desktop.
Getting around spf13-vim's ctrlp_user_command in order to set ctrlp_custom_ignore
" The custom ignore feature in ctrlp.vim is a useful feature
" when you want to ignore files and folder in your directory
" structure. However if yo set g:ctrlp_user_command then
" g:ctrlp_custom_ignore had no effect. This is all well and
" and good unless you use a vim distribution like spf13-vim
" that just so happens to set g:ctrlp_user_command. So here
" is how you get around that issue in your own .vimrc.local:
"
" unlet the original spf13-vim settings
unlet g:ctrlp_custom_ignore
unlet g:ctrlp_user_command
" set your own custom ignore settings
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.hg$\|\.svn$\|bower_components$\|dist$\|node_modules$\|project_files$\|test$',
\ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$' }
@tomster
Copy link
Copy Markdown

tomster commented Jun 14, 2016

thank you so much, btw - totally made my day here!

@jumph4x
Copy link
Copy Markdown

jumph4x commented Feb 14, 2017

TYVM

@hrai
Copy link
Copy Markdown

hrai commented Apr 25, 2019

Worked perfectly, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment