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

@@ -65,7 +65,14 @@ Tutorial of zencoding.vim
7. Update <img> Size
type '<c-z>i' on img tag
Move cursor to img tag.
---------------------
<img src="foo.png" />
---------------------
Type '<c-z>i' on img tag
---------------------
<img src="foo.png" width="32" height="48" />
---------------------
8. Merge Lines
@@ -96,5 +103,16 @@ Tutorial of zencoding.vim
11. Toggle Comment
type '<c-z>/' in insert mode.
Move cursor to block
---------------------
<div>
hello world
</div>
---------------------
Type '<c-z>/' in insert mode.
---------------------
<!-- <div>
hello world
</div> -->
---------------------

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
endfunction
function! ZenExpand(abbr, type, orig)