better ctrplp
authorBen Doumenc <bdoumenc@parkeon.com>
Fri, 10 Oct 2014 23:43:54 +0000 (01:43 +0200)
committerBen Doumenc <bdoumenc@parkeon.com>
Fri, 10 Oct 2014 23:43:54 +0000 (01:43 +0200)
vim/customVimrc

index 0568076..fdb38d3 100644 (file)
@@ -185,10 +185,12 @@ set statusline+=\ \ %P    "percent through file
 " Fuzzy finder (CtrlP) 
 let g:ctrlp_map = '<c-f>'
 let g:ctrlp_cmd = 'CtrlP ' . s:basePath
-let g:ctrlp_custom_ignore = '\v[\/](\.git|\.hg|\.svn|.PUBLIC|.LIVR)$'
+let g:ctrlp_custom_ignore = '\v[\/](\.git|\.hg|\.svn|.PUBLIC|.LIVR|gen|obj|.*\.pyc|.*\.class)$'
 let g:ctrlp_by_filename = 1
 let g:ctrlp_regex = 1
 let g:ctrlp_reuse_window = 'netrw\|NERD.*'
+let g:ctrlp_clear_cache_on_exit = 0
+let g:ctrlp_cache_dir = '/tmp/.cache/ctrlp'
 
 " Easily GREP current word in current file.
 command GREP :execute 'vimgrep '.expand('<cword>').' '.expand('%') | :copen | :cc