From 451367a2ce2c964d70ba326a253905e2a5373d23 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 10 Nov 2015 10:34:50 +0900 Subject: [PATCH] add doc for emmet-update-tag Close #285 --- doc/emmet.txt | 72 +++++++++++++++++++++++++++++++-------------------- 1 file changed, 44 insertions(+), 28 deletions(-) diff --git a/doc/emmet.txt b/doc/emmet.txt index 6c44b7d..4e7672a 100644 --- a/doc/emmet.txt +++ b/doc/emmet.txt @@ -17,20 +17,22 @@ Introduction |emmet-introduction| Install |emmet-install| Tutorial |emmet-tutorial| 1. Expand abbreviation |emmet-expand-abbr| |,| - 2. Wrap with abbreviation |emmet-wrap-with-abbreviation| |v_,| - 3. Balance tag inward |emmet-balance-tag-inward| |d| - 4. Balance tag outward |emmet-balance-tag-outward| |D| - 5. Go to next edit point |emmet-goto-next-point| |n| - 6. Go to previous edit point |emmet-goto-previous-point| |N| - 7. Add and update size |emmet-update-image-size| |i| - 8. Merge lines |emmet-merge-lines| |m| - 9. Remove tag |emmet-remove-tag| |k| - 10. Split/join tag |emmet-split-join-tag| |j| - 11. Toggle comment |emmet-toggle-comment| |/| - 12. Make anchor from URL |emmet-make-anchor-url| |a| - 13. Make quoted text from URL |emmet-quoted-text-url| |A| - 14. Code pretty |emmet-code-pretty| |c| - 15. Lorem ipsum |emmet-lorem-ipsum| + 2. Expand word |emmet-expand-word| |;| + 3. Update tag |emmet-update-tag| |u| + 4. Wrap with abbreviation |emmet-wrap-with-abbreviation| |v_,| + 5. Balance tag inward |emmet-balance-tag-inward| |d| + 6. Balance tag outward |emmet-balance-tag-outward| |D| + 7. Go to next edit point |emmet-goto-next-point| |n| + 8. Go to previous edit point |emmet-goto-previous-point| |N| + 9. Add and update size |emmet-update-image-size| |i| + 10. Merge lines |emmet-merge-lines| |m| + 11. Remove tag |emmet-remove-tag| |k| + 12. Split/join tag |emmet-split-join-tag| |j| + 13. Toggle comment |emmet-toggle-comment| |/| + 14. Make anchor from URL |emmet-make-anchor-url| |a| + 15. Make quoted text from URL |emmet-quoted-text-url| |A| + 16. Code pretty |emmet-code-pretty| |c| + 17. Lorem ipsum |emmet-lorem-ipsum| HTML expression syntax |emmet-html-expression-syntax| 1. Elements |emmet-html-syntax-elements| 2. Nesting operators |emmet-html-syntax-nesting-operators| @@ -158,7 +160,21 @@ You should copy this section and create new buffer, paste and write as -3. Wrap with abbreviation *emmet-wrap-with-abbreviation* *v_,* +3. Update tag *emmet-update-tag* *u* + + The begining of tags '
' on below +> +
foo
+< + Type 'u' request 'Enter Abbreviation:'. Then type +> + .global +< + This will be expanded like: +> +
foo
+< +4. Wrap with abbreviation *emmet-wrap-with-abbreviation* *v_,* Write as below. > @@ -193,7 +209,7 @@ You should copy this section and create new buffer, paste and write as < See also: |emmet-filter-t|, |emmet-$#| -4. Balance tag inward *emmet-balance-tag-inward* *d* +5. Balance tag inward *emmet-balance-tag-inward* *d* To select inward of '
    ' tag, type 'd' in insert mode. > @@ -206,7 +222,7 @@ You should copy this section and create new buffer, paste and write as If cursor is at '*', 'd' select from begin of '
      ' to end of '
    '. If cursor is at first of '
  • ', it select '
  • '. -5. Balance tag outward *emmet-balance-tag-outward* *D* +6. Balance tag outward *emmet-balance-tag-outward* *D* To select outward of '
      ' tag type 'D' in insert mode. > @@ -220,7 +236,7 @@ You should copy this section and create new buffer, paste and write as to previous letter of '
    '. If cursor is at first of '
  • ', it select '
  • '. -6. Go to next edit point *emmet-goto-next-point* *n* +7. Go to next edit point *emmet-goto-next-point* *n* To jump next point that need to edit, type 'n' in insert mode. > @@ -232,7 +248,7 @@ You should copy this section and create new buffer, paste and write as And type again 'n' to move a cursor into inner of '
    ' specified id as 'bar'. -7. Go to previous edit point *emmet-goto-previous-point* *N* +8. Go to previous edit point *emmet-goto-previous-point* *N* To jump previous point that need to edit, type 'N' in insert mode. > @@ -244,7 +260,7 @@ You should copy this section and create new buffer, paste and write as And type again 'N' to move a cursor into attribute value of 'foo'. -8. Add and update size *emmet-update-image-size* *i* +9. Add and update size *emmet-update-image-size* *i* To add or update 'width' and 'height' attributes of image, type 'i' on '' tag @@ -262,7 +278,7 @@ You should copy this section and create new buffer, paste and write as Image size retrieved using 'identify' (ImageMagick.org) (if available) or |xxd|. -9. Merge lines *emmet-merge-lines* *m* +10. Merge lines *emmet-merge-lines* *m* To join multi line text like following, type |J|. > @@ -279,7 +295,7 @@ You should copy this section and create new buffer, paste and write as
< -10. Remove tag *emmet-remove-tag* *k* +11. Remove tag *emmet-remove-tag* *k* To remove tag in the block, type 'k'. > @@ -295,7 +311,7 @@ You should copy this section and create new buffer, paste and write as < And type 'k' in there again, then '
' will be removed. -11. Split/join tag *emmet-split-join-tag* *j* +12. Split/join tag *emmet-split-join-tag* *j* To join block, type 'j'. > @@ -312,7 +328,7 @@ You should copy this section and create new buffer, paste and write as
< -12. Toggle comment *emmet-toggle-comment* */* +13. Toggle comment *emmet-toggle-comment* */* Move cursor to block > @@ -332,7 +348,7 @@ You should copy this section and create new buffer, paste and write as hello world
< -13. Make anchor from URL *emmet-make-anchor-url* *a* +14. Make anchor from URL *emmet-make-anchor-url* *a* Move cursor to URL > @@ -344,7 +360,7 @@ You should copy this section and create new buffer, paste and write as < Text retrieved using command, specified by |g:emmet_curl_command|. -14. Make quoted text from URL *emmet-quoted-text-url* *A* +15. Make quoted text from URL *emmet-quoted-text-url* *A* Move cursor to URL > @@ -360,7 +376,7 @@ You should copy this section and create new buffer, paste and write as < Text retrieved using command, specified by |g:emmet_curl_command|. -15. Code pretty *emmet-code-pretty* *c* +16. Code pretty *emmet-code-pretty* *c* Select code block, for example select following code from 'int main()'. > @@ -378,7 +394,7 @@ You should copy this section and create new buffer, paste and write as < To convert text into html used command |:TOhtml|. -16. Lorem ipsum *emmet-lorem-ipsum* +17. Lorem ipsum *emmet-lorem-ipsum* To insert dummy text (30 words by default). >