Mercurial > dotfiles
comparison vim/vimrc @ 197:4d34bf15a478
Don't clear CtrlP cache on exit, fix Windows issues.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 25 Jul 2014 09:47:05 -0700 |
parents | ae53d68033d9 |
children | 0db3b41793ee |
comparison
equal
deleted
inserted
replaced
196:8db8c5f1fdd1 | 197:4d34bf15a478 |
---|---|
225 \ 'dir': '\v[\/](\.git|\.hg|\.svn|venv|build|static|node_modules)$' | 225 \ 'dir': '\v[\/](\.git|\.hg|\.svn|venv|build|static|node_modules)$' |
226 \ } | 226 \ } |
227 | 227 |
228 " Make Ctrl-P cache stuff in our temp directory. | 228 " Make Ctrl-P cache stuff in our temp directory. |
229 let g:ctrlp_cache_dir = s:vim_home.'/cache' | 229 let g:ctrlp_cache_dir = s:vim_home.'/cache' |
230 | |
231 " Remember things. | |
232 let g:ctrlp_clear_cache_on_ext = 0 | |
230 | 233 |
231 " Enable some cool extensions. | 234 " Enable some cool extensions. |
232 let g:ctrlp_extensions = ['tag', 'buffertag', 'quickfix', 'mixed'] | 235 let g:ctrlp_extensions = ['tag', 'buffertag', 'quickfix', 'mixed'] |
233 | 236 |
234 " Initialize other custom extensions. | 237 " Initialize other custom extensions. |
497 return '' | 500 return '' |
498 endfunction | 501 endfunction |
499 | 502 |
500 function! s:SetProjectRootCwd() abort | 503 function! s:SetProjectRootCwd() abort |
501 let l:cur_file_dir = expand('%:p:h', 1) | 504 let l:cur_file_dir = expand('%:p:h', 1) |
502 if l:cur_file_dir =~ '\v^.+://' | 505 if l:cur_file_dir =~ '\v^.+:(//|\\\\)' |
503 return | 506 return |
504 endif | 507 endif |
505 let l:root = l:cur_file_dir | 508 let l:root = l:cur_file_dir |
506 let l:markers = [] | 509 let l:markers = [] |
507 if exists('g:ctrlp_root_markers') | 510 if exists('g:ctrlp_root_markers') |