ignore wildignore with expand/glob

- closes #110
This commit is contained in:
gmarik
2011-11-18 00:36:14 -06:00
parent baa3e989e0
commit 43080a1e5c
5 changed files with 18 additions and 13 deletions

View File

@@ -69,17 +69,17 @@ func! s:rtp_add_a()
endf
func! s:rtp_rm(dir) abort
exec 'set rtp-='.fnameescape(expand(a:dir))
exec 'set rtp-='.fnameescape(expand(a:dir.'/after'))
exec 'set rtp-='.fnameescape(expand(a:dir, 1))
exec 'set rtp-='.fnameescape(expand(a:dir.'/after', 1))
endf
func! s:rtp_add(dir) abort
exec 'set rtp^='.fnameescape(expand(a:dir))
exec 'set rtp+='.fnameescape(expand(a:dir.'/after'))
exec 'set rtp^='.fnameescape(expand(a:dir, 1))
exec 'set rtp+='.fnameescape(expand(a:dir.'/after', 1))
endf
func! s:expand_path(path) abort
return simplify(expand(a:path))
return simplify(expand(a:path, 1))
endf
let s:bundle = {}