Skip to content

Instantly share code, notes, and snippets.

@amadeus
Created February 27, 2015 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amadeus/c182ef1804a2ddcd06f6 to your computer and use it in GitHub Desktop.
Save amadeus/c182ef1804a2ddcd06f6 to your computer and use it in GitHub Desktop.
let g:ctrlp_working_path_mode = 0
let g:ctrlp_match_window = 'bottom,order:btt,min:1,max:20,results:20'
let g:ctrlp_cache_dir = $HOME.'/.vim/cache/ctrlp'
let g:ctrlp_switch_buffer = 'e'
let g:ctrlp_open_new_file = 'r'
let g:ctrlp_clear_cache_on_exit = 0
let g:ctrlp_max_files = 10000
let ctrlp_filter_greps = "".
\ "egrep -iv '\\.(" .
\ "jar|class|swp|swo|log|so|o|pyc|pyo|jpe?g|eps|png|gif|psd" .
\ "|mo|po|DS_Store|a|beam|tar.gz|tar.bz2|map" .
\ ")$' | " .
\ "egrep -v '^(\\./)?(" .
\ ".git/|.rbc/|.hg/|.svn/|.vagrant/|ignore_me/|website/source/|" .
\ "node_modules/|bower_components/|compressed/|_site/|static_components/|" .
\ "bin/|env/|build/|static/compressed/|.sass-cache/|Session.vim" .
\ ")'"
let my_ctrlp_git_command = "" .
\ "cd %s && git ls-files . -co | " .
\ ctrlp_filter_greps
if has("unix")
let my_ctrlp_user_command = "" .
\ "find %s '(' -type f -or -type l ')' -not -path '*/\\.*/*' | " .
\ ctrlp_filter_greps .
\ " | head -" . g:ctrlp_max_files
let g:ctrlp_user_command = ['.git/', my_ctrlp_git_command,
\ my_ctrlp_user_command]
elseif has('win32')
let my_ctrlp_user_command = "" .
\ "dir %s /-n /b /s /a-d" .
\ ctrlp_filter_greps
let g:ctrlp_user_command = ['.git/', my_ctrlp_git_command,
\ my_ctrlp_user_command]
else
let g:ctrlp_user_command = ['.git/', my_ctrlp_git_command]
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment