This commit is contained in:
mattn
2010-03-04 17:33:43 +09:00
parent f1e11a5fae
commit 304586f056
2 changed files with 21 additions and 9 deletions

View File

@@ -1289,13 +1289,7 @@ endfunction
function! s:zen_splitJoinTag()
let pos = getpos('.')
if searchpair('<[a-z]', '', '\(</[^>]\+>\|<[^/>]\+/>\)', 'bcW')
exe "normal! i<!-- "
let rpos = search('\(</[^>]\+>\|<[^/>]\+/>\)', 'ceW')
exe "normal! a --\<c-v>>"
else
call setpos('.', pos)
endif
call setpos('.', pos)
endfunction
function! ZenExpand(abbr, type, orig)