adding new stuff
This commit is contained in:
parent
f84d7183aa
commit
9ef8a96f9a
1580 changed files with 0 additions and 0 deletions
42
plugins/bundle/xptemplate/ftplugin/_comment/pattern.xpt.vim
Normal file
42
plugins/bundle/xptemplate/ftplugin/_comment/pattern.xpt.vim
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
" priority is a bit lower than 'spec'
|
||||
XPTemplate priority=spec+
|
||||
|
||||
echom "_comment/pattern is deprecated."
|
||||
|
||||
|
||||
" XPTvar $CL Warn_$CL_IS_NOT_SET
|
||||
" XPTvar $CM Warn_$CM_IS_NOT_SET
|
||||
" XPTvar $CR Warn_$CR_IS_NOT_SET
|
||||
" XPTvar $CS Warn_$CS_IS_NOT_SET
|
||||
|
||||
" ================================= Snippets ===================================
|
||||
|
||||
if has_key(s:v, '$CL') && has_key(s:v, '$CR')
|
||||
|
||||
call XPTdefineSnippet('cc', {'hint' : '$CL $CR'}, [ '`$CL^ `cursor^ `$CR^' ])
|
||||
call XPTdefineSnippet('cc_', {'hint' : '$CL ... $CR'}, [ '`$CL^ `wrapped^ `$CR^' ])
|
||||
|
||||
" block comment
|
||||
call XPTdefineSnippet('cb', {'hint' : '$CL ...'}, [
|
||||
\'`$CL^',
|
||||
\' `$CM^ `cursor^',
|
||||
\' `$CR^' ])
|
||||
|
||||
" block doc comment
|
||||
call XPTdefineSnippet('cd', {'hint' : '$CL$CM ...'}, [
|
||||
\'`$CL^`$CM^',
|
||||
\' `$CM^ `cursor^',
|
||||
\' `$CR^' ])
|
||||
|
||||
endif
|
||||
|
||||
" line comment
|
||||
if has_key(s:v, '$CS')
|
||||
call XPTdefineSnippet('cl', {'hint' : '$CS'}, [ '`$CS^ `cursor^' ])
|
||||
|
||||
else
|
||||
call XPTdefineSnippet('cl', {'hint' : '$CL .. $CR'}, [ '`$CL^ `cursor^ `$CR^' ])
|
||||
|
||||
endif
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue