From 208553fc27825082e11acdfa5026192a43cb3030 Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 4 Mar 2010 20:27:07 +0900 Subject: [PATCH] fixed comment block. --- zencoding.vim | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/zencoding.vim b/zencoding.vim index 7c28f1e..241d405 100644 --- a/zencoding.vim +++ b/zencoding.vim @@ -1276,25 +1276,25 @@ endfunction function! s:zen_toggleComment() let pos = getpos('.') - let sp1 = searchpos('<', 'bnW') + let sp1 = searchpos('<[^!]', 'bnW') let sp2 = searchpos('>', 'bnW') if sp1[0]', 'bcW') exe "normal! d5l" - call search(' -->', 'ceW') - exe "normal! d4h" + call search(' -->', 'cW') + exe "normal! d4l" let pos[2] -= 5 - elseif searchpair('[^\s]', '', '[^\s]', 'bcW') - exe "normal! Bi', 'bcW') exe "normal! d5l" - call search('\(]\+>\|<[^/>]\+/>\) -->', 'ceW') + call search(' -->', 'ceW') exe "normal! d4h" let pos[2] -= 5 elseif searchpair('<[a-z]', '', '\(]\+>\|<[^/>]\+/>\)', 'bcW')