adding new stuff
This commit is contained in:
parent
f84d7183aa
commit
9ef8a96f9a
1580 changed files with 0 additions and 0 deletions
30
plugins/bundle/xptemplate/ftplugin/vim/autoload.vim.xpt.vim
Normal file
30
plugins/bundle/xptemplate/ftplugin/vim/autoload.vim.xpt.vim
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
if expand( "%:p:h" ) . '/' !~# '\V\[\\/]autoload\[\\/]'
|
||||
finish
|
||||
endif
|
||||
|
||||
XPTemplate priority=lang-
|
||||
|
||||
let s:f = g:XPTfuncs()
|
||||
|
||||
fun! s:f.vim_autoload_pre()
|
||||
let path = expand( "%:p" )
|
||||
let path = substitute( path, '\V\\', '/', 'g' )
|
||||
let path = matchstr( path, '\V/autoload/\zs\.\+\ze.vim\$' )
|
||||
let path = substitute( path, '\V/', '#', 'g' )
|
||||
return path
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
XPTinclude
|
||||
\ _common/common
|
||||
\ vim/vim
|
||||
|
||||
" TODO fix it
|
||||
" XSET name|repl=vim_autoload_pre()#`name
|
||||
XPT fun alias=_fun " fun! vim_autoload_pre()#**
|
||||
XSET name=Build( '`' . vim_autoload_pre() . '#`n^' )
|
||||
|
||||
|
||||
XPT ## " vim_autoload_pre\()#
|
||||
`vim_autoload_pre()^#
|
||||
Loading…
Add table
Add a link
Reference in a new issue