adding new stuff
This commit is contained in:
parent
f84d7183aa
commit
9ef8a96f9a
1580 changed files with 0 additions and 0 deletions
16
plugins/bundle/xptemplate/autoload/xpt/snipline.vim
Normal file
16
plugins/bundle/xptemplate/autoload/xpt/snipline.vim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
if exists( "g:__AL_XPT_SNIPLINE_VIM__" ) && g:__AL_XPT_SNIPLINE_VIM__ >= XPT#ver
|
||||
finish
|
||||
endif
|
||||
let g:__AL_XPT_SNIPLINE_VIM__ = XPT#ver
|
||||
let s:oldcpo = &cpo
|
||||
set cpo-=< cpo+=B
|
||||
let s:log = xpt#debug#Logger( 'warn' )
|
||||
fun! xpt#snipline#New(elts)
|
||||
if len(a:elts) == 0 || type(a:elts[0]) == type({})
|
||||
let nIndent = 0
|
||||
else
|
||||
let nIndent = len( matchstr( a:elts[ 0 ], '\V\^ \*' ) )
|
||||
endif
|
||||
return { 'nIndent' : nIndent, 'elts' : a:elts }
|
||||
endfunction
|
||||
let &cpo = s:oldcpo
|
||||
Loading…
Add table
Add a link
Reference in a new issue