1
0
mirror of https://github.com/amix/vimrc synced 2025-06-17 02:15:01 +08:00

Updated plugins

This commit is contained in:
Amir
2020-12-04 22:15:32 +01:00
parent e83f5ea2e7
commit a06964dd3b
261 changed files with 6955 additions and 2773 deletions

View File

@ -75,9 +75,9 @@ fu! ctrlp#utils#globpath(...)
retu call('globpath', s:wig_cond ? a:000 : a:000[:1])
endf
fu! ctrlp#utils#fnesc(path, type, ...)
if exists('*fnameescape')
if exists('+ssl')
if exists('*fnameescape')
if exists('+ssl')
fu! ctrlp#utils#fnesc(path, type, ...)
if a:type == 'c'
let path = escape(a:path, '%#')
elsei a:type == 'f'
@ -86,11 +86,17 @@ fu! ctrlp#utils#fnesc(path, type, ...)
let path = escape(a:path, '?*')
en
let path = substitute(path, '[', '[[]', 'g')
el
let path = fnameescape(a:path)
en
retu a:0 ? escape(path, a:1) : path
endf
el
if exists('+ssl')
fu! ctrlp#utils#fnesc(path, type, ...)
let path = fnameescape(a:path)
retu a:0 ? escape(path, a:1) : path
endf
en
el
if exists('+ssl')
fu! ctrlp#utils#fnesc(path, type, ...)
if a:type == 'c'
let path = escape(a:path, '%#')
elsei a:type == 'f'
@ -99,12 +105,15 @@ fu! ctrlp#utils#fnesc(path, type, ...)
let path = escape(a:path, '?*')
en
let path = substitute(path, '[', '[[]', 'g')
el
retu a:0 ? escape(path, a:1) : path
endf
el
fu! ctrlp#utils#fnesc(path, type, ...)
let path = escape(a:path, " \t\n*?[{`$\\%#'\"|!<")
en
retu a:0 ? escape(path, a:1) : path
endf
en
retu a:0 ? escape(path, a:1) : path
endf
en
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2