grouping.

This commit is contained in:
mattn
2010-03-01 14:48:32 +09:00
parent d2a98bbc0a
commit 71e739e770
2 changed files with 235 additions and 230 deletions

View File

@@ -1148,14 +1148,16 @@ function! s:zen_expand(mode) range
endif
endfunction
function! ZenExpand(abbr, type)
function! ZenExpand(abbr, type, orig)
let items = s:zen_parseIntoTree(a:abbr, a:type).child
let expand = ''
for item in items
let expand .= s:zen_toString(item, a:type)
endfor
let expand = substitute(expand, '${lang}', s:zen_settings.lang, 'g')
let expand = substitute(expand, '|', '', 'g')
if a:orig == 0
let expand = substitute(expand, '${lang}', s:zen_settings.lang, 'g')
let expand = substitute(expand, '|', '', 'g')
endif
return expand
endfunction