forked from VimPlug/emmet-vim
add doc.
This commit is contained in:
22
TUTORIAL
22
TUTORIAL
@@ -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> -->
|
||||
---------------------
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user