adding new stuff

This commit is contained in:
ViktorBarzin 2017-07-09 00:22:01 +03:00
parent f84d7183aa
commit 9ef8a96f9a
1580 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,13 @@
exec xpt#once#init
let s:oldcpo = &cpo
set cpo-=< cpo+=B
call XPT#default('g:xptemplate_cwd_snippet', 0)
augroup XPT_CWD_SNIPPET
au!
if g:xptemplate_cwd_snippet == 1
au BufEnter * call xpt#cwd#snpt#load()
au FileType * call xpt#cwd#snpt#reload()
au BufUnload * call xpt#cwd#snpt#clearFlag()
endif
augroup END
let &cpo = s:oldcpo

View file

@ -0,0 +1,22 @@
exec xpt#once#init
let s:oldcpo = &cpo
set cpo-=< cpo+=B
call XPT#default('g:xptemplate_lib_filter', '\v.')
fun! xpt#option#lib_filter#Match(fn)
if a:fn =~ '\V\<_\w\+\[/\\]\[^/\\]\+' || a:fn =~ '\V~~/xpt/pseudo/ftplugin/'
return 1
end
let regs = []
if type(g:xptemplate_lib_filter) == type('')
let regs = [g:xptemplate_lib_filter]
else
let regs = g:xptemplate_lib_filter
endif
for r in regs
if a:fn =~# r
return 1
endif
endfor
return 0
endfunction
let &cpo = s:oldcpo