Created
December 3, 2014 14:02
-
-
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
This file contains 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
" 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$' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TYVM