From 863996ce26fc93ed86c7d8c2b60eb56260f52559 Mon Sep 17 00:00:00 2001 From: Kien N Date: Sun, 15 Apr 2012 02:00:06 +0700 Subject: [PATCH] Change bookmarkdir's cache --- autoload/ctrlp.vim | 3 ++- autoload/ctrlp/bookmarkdir.vim | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index c333670..62be447 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -221,7 +221,8 @@ fu! ctrlp#clra() let cache_dir = ctrlp#utils#cachedir() if isdirectory(cache_dir) let cache_files = split(s:glbpath(cache_dir, '**', 1), "\n") - let eval = '!isdirectory(v:val) && v:val !~ ''\[.a-z]+$|\.log$''' sil! cal map(filter(cache_files, eval), 'delete(v:val)') en cal ctrlp#clr() diff --git a/autoload/ctrlp/bookmarkdir.vim b/autoload/ctrlp/bookmarkdir.vim index 1e1bef5..2fb9ab8 100644 --- a/autoload/ctrlp/bookmarkdir.vim +++ b/autoload/ctrlp/bookmarkdir.vim @@ -34,8 +34,8 @@ endf fu! s:cachefile() if !exists('s:cadir') || !exists('s:cafile') - let s:cadir = ctrlp#utils#cachedir().ctrlp#utils#lash().'bookmark' - let s:cafile = s:cadir.ctrlp#utils#lash().'dir.txt' + let s:cadir = ctrlp#utils#cachedir().ctrlp#utils#lash().'bkd' + let s:cafile = s:cadir.ctrlp#utils#lash().'cache.txt' en retu s:cafile endf