This commit is contained in:
mattn
2011-09-22 20:41:54 +09:00
parent 44619b2584
commit f34dd90f73

View File

@@ -1,231 +1,232 @@
script_name: ZenCoding.vim script_name: ZenCoding.vim
script_id: '2981' script_id: '2981'
script_type: utility script_type: utility
script_package: zencoding-vim.zip script_package: zencoding-vim.zip
script_version: '0.54' script_version: '0.54'
required_vim_version: '7.0' required_vim_version: '7.0'
summary: vim plugins for HTML and CSS hi-speed coding. summary: vim plugins for HTML and CSS hi-speed coding.
detailed_description: | detailed_description: |
This is vim script support expanding abbreviation like zen-coding. This is vim script support expanding abbreviation like zen-coding.
ref: http://code.google.com/p/zen-coding/ ref: http://code.google.com/p/zen-coding/
There is a movie using zencoding.vim There is a movie using zencoding.vim
ref: http://mattn.github.com/zencoding-vim ref: http://mattn.github.com/zencoding-vim
Source Repository. Source Repository.
ref: http://github.com/mattn/zencoding-vim ref: http://github.com/mattn/zencoding-vim
Type abbreviation Type abbreviation
+------------------------------------- +-------------------------------------
| html:5_ | html:5_
+------------------------------------- +-------------------------------------
"_" is a cursor position. and type "<c-y>," (Ctrl + y and Comma) "_" is a cursor position. and type "<c-y>," (Ctrl + y and Comma)
NOTE: Don't worry about key map. you can change it easily. NOTE: Don't worry about key map. you can change it easily.
+------------------------------------- +-------------------------------------
| <!DOCTYPE HTML> | <!DOCTYPE HTML>
| <html lang="en"> | <html lang="en">
| <head> | <head>
| <title></title> | <title></title>
| <meta charset="UTF-8"> | <meta charset="UTF-8">
| </head> | </head>
| <body> | <body>
| _ | _
| </body> | </body>
| </html> | </html>
+------------------------------------- +-------------------------------------
Type following Type following
+------------------------------------- +-------------------------------------
| div#foo$*2>div.bar | div#foo$*2>div.bar
+------------------------------------- +-------------------------------------
And type "<c-y>," And type "<c-y>,"
+------------------------------------- +-------------------------------------
|<div id="foo1"> |<div id="foo1">
| <div class="bar">_</div> | <div class="bar">_</div>
|</div> |</div>
|<div id="foo2"> |<div id="foo2">
| <div class="bar"></div> | <div class="bar"></div>
|</div> |</div>
| _ | _
+------------------------------------- +-------------------------------------
Tutorial: Tutorial:
http://github.com/mattn/zencoding-vim/raw/master/TUTORIAL http://github.com/mattn/zencoding-vim/raw/master/TUTORIAL
How work this: How work this:
http://mattn.github.com/zencoding-vim http://mattn.github.com/zencoding-vim
Tips: Tips:
You can customize behavior of expanding with overriding config. You can customize behavior of expanding with overriding config.
This configuration will be marged at loading plugin. This configuration will be marged at loading plugin.
let g:user_zen_settings = { let g:user_zen_settings = {
\ 'indentation' : ' ', \ 'indentation' : ' ',
\ 'perl' : { \ 'perl' : {
\ 'aliases' : { \ 'aliases' : {
\ 'req' : 'require ' \ 'req' : 'require '
\ }, \ },
\ 'snippets' : { \ 'snippets' : {
\ 'use' : "use strict\nuse warnings\n\n", \ 'use' : "use strict\nuse warnings\n\n",
\ 'warn' : "warn \"|\";", \ 'warn' : "warn \"|\";",
\ } \ }
\ } \ }
\} \}
let g:user_zen_expandabbr_key = '<c-e>' let g:user_zen_expandabbr_key = '<c-e>'
let g:use_zen_complete_tag = 1 let g:use_zen_complete_tag = 1
You can set language attribute in html using zen_settings['lang']. You can set language attribute in html using zen_settings['lang'].
install_details: | install_details: |
# cd ~/.vim # cd ~/.vim
# unzip zencoding-vim.zip # unzip zencoding-vim.zip
or if you install pathogen.vim: or if you install pathogen.vim:
# cd ~/.vim/bundle # or make directory # cd ~/.vim/bundle # or make directory
# unzip /path/to/zencoding-vim.zip # unzip /path/to/zencoding-vim.zip
if you get sources from repository: if you get sources from repository:
# cd ~/.vim/bundle # or make directory # cd ~/.vim/bundle # or make directory
# git clone http://github.com/mattn/zencoding-vim.git # git clone http://github.com/mattn/zencoding-vim.git
versions: versions:
- '0.54': | - '0.54': |
[add] support sass, xsd. [add] support sass, xsd.
[fix] expanding with html tag. [fix] expanding with html tag.
- '0.53': | uploaded again: sorry, fileformat was DOS.
[fix] gif width/height was swapped. - '0.53': |
- '0.52': | [fix] gif width/height was swapped.
[fix] broken wrap expanding. - '0.52': |
- '0.51': | [fix] broken wrap expanding.
This is an upgrade for ZenCoding.vim: - '0.51': |
[fix] wrap expanding with '&'. This is an upgrade for ZenCoding.vim:
[fix] expand .content to class="content". [fix] wrap expanding with '&'.
[fix] haml expanding. [fix] expand .content to class="content".
[fix] bg+ snippet [fix] haml expanding.
- '0.50': | [fix] bg+ snippet
This is an upgrade for ZenCoding.vim: - '0.50': |
[fix] fixed parsing '#{{foo}}' and '.{{bar}}'. This is an upgrade for ZenCoding.vim:
- '0.49': | [fix] fixed parsing '#{{foo}}' and '.{{bar}}'.
This is an upgrade for ZenCoding.vim: - '0.49': |
[doc] add help manual. This is an upgrade for ZenCoding.vim:
- '0.48': | [doc] add help manual.
This is an upgrade for ZenCoding.vim: - '0.48': |
[fix] install mappings to global. This is an upgrade for ZenCoding.vim:
- '0.47': | [fix] install mappings to global.
This is an upgrade for ZenCoding.vim: - '0.47': |
[drastic changes] enable autoload. you should whole replace older files. This is an upgrade for ZenCoding.vim:
package was empty. upload again. [drastic changes] enable autoload. you should whole replace older files.
- '0.46': | package was empty. upload again.
This is an upgrade for ZenCoding.vim: - '0.46': |
[drastic changes] enable autoload. you should whole replace older files. This is an upgrade for ZenCoding.vim:
- '0.45': | [drastic changes] enable autoload. you should whole replace older files.
This is an upgrade for ZenCoding.vim: - '0.45': |
fixed attribute parsing like: a[href="hello', world" rel]. This is an upgrade for ZenCoding.vim:
- '0.44': | fixed attribute parsing like: a[href="hello', world" rel].
This is an upgrade for ZenCoding.vim: - '0.44': |
fixed checking whether have mapping using maparg() / hasmapto(). This is an upgrade for ZenCoding.vim:
- '0.43': | fixed checking whether have mapping using maparg() / hasmapto().
This is an upgrade for ZenCoding.vim: - '0.43': |
fixed behavior for nested block. like "html:5>#page>(header#globalHeader>(hgroup>h1+h2)+(nav>ul>li*3>a)+(form>p.siteSearch>input+input[type=button]))+(#contents>(#main>(section>h2+p*5)+p.pagetop>a[href=#page])+(#sub>p+(nav>ul>li>a)))+(footer#globalFoooter>(ul>li>a)+(p.copyright>small))" This is an upgrade for ZenCoding.vim:
- '0.42': | fixed behavior for nested block. like "html:5>#page>(header#globalHeader>(hgroup>h1+h2)+(nav>ul>li*3>a)+(form>p.siteSearch>input+input[type=button]))+(#contents>(#main>(section>h2+p*5)+p.pagetop>a[href=#page])+(#sub>p+(nav>ul>li>a)))+(footer#globalFoooter>(ul>li>a)+(p.copyright>small))"
This is an upgrade for ZenCoding.vim: - '0.42': |
fixed select/option indent. This is an upgrade for ZenCoding.vim:
- '0.41': | fixed select/option indent.
This is an upgrade for ZenCoding.vim: - '0.41': |
fixed default filter. when using 'e' filter, output become empty. This is an upgrade for ZenCoding.vim:
- '0.40': | fixed default filter. when using 'e' filter, output become empty.
This is an upgrade for ZenCoding.vim: - '0.40': |
add the pure vimscript code for 'get image size'. you can use it without perl interface just now. This is an upgrade for ZenCoding.vim:
change key assign of ZenCodingExpandWord from ',' to ';'. it don't effect to most users. add the pure vimscript code for 'get image size'. you can use it without perl interface just now.
- '0.39': | change key assign of ZenCodingExpandWord from ',' to ';'. it don't effect to most users.
This is an upgrade for ZenCoding.vim: fixed problem about 'selection'. see http://github.com/mattn/zencoding-vim/issues/#issue/2 - '0.39': |
- '0.38': | This is an upgrade for ZenCoding.vim: fixed problem about 'selection'. see http://github.com/mattn/zencoding-vim/issues/#issue/2
This is an upgrade for ZenCoding.vim: use v7h"_s instead of v7hs for backspace. - '0.38': |
- '0.37': | This is an upgrade for ZenCoding.vim: use v7h"_s instead of v7hs for backspace.
This is an upgrade for ZenCoding.vim: fixed problem that won't working with some 'backspace' options. - '0.37': |
- '0.36': | This is an upgrade for ZenCoding.vim: fixed problem that won't working with some 'backspace' options.
This is an upgrade for ZenCoding.vim: fixed problem that filter does not work. - '0.36': |
- '0.35': | This is an upgrade for ZenCoding.vim: fixed problem that filter does not work.
This is an upgrade for ZenCoding.vim: enable zencoding for other languages. (meaning php also) - '0.35': |
- '0.34': | This is an upgrade for ZenCoding.vim: enable zencoding for other languages. (meaning php also)
This is an upgrade for ZenCoding.vim: enable zencoding for xsl. (you should add ~/.vim/ftplugin/xslt/zencoding.vim) - '0.34': |
- '0.33': | This is an upgrade for ZenCoding.vim: enable zencoding for xsl. (you should add ~/.vim/ftplugin/xslt/zencoding.vim)
This is an upgrade for ZenCoding.vim: fixed problem breaking multibyte when cursor is in a part of line. enabled zencoding for javascript in html. - '0.33': |
- '0.32': | This is an upgrade for ZenCoding.vim: fixed problem breaking multibyte when cursor is in a part of line. enabled zencoding for javascript in html.
This is an upgrade for ZenCoding.vim: fixed indentation. supported extends so that you can enable zencoding for php/xhtml/haml other's section 14 in http://github.com/mattn/zencoding-vim/raw/master/TUTORIAL - '0.32': |
- '0.31': | This is an upgrade for ZenCoding.vim: fixed indentation. supported extends so that you can enable zencoding for php/xhtml/haml other's section 14 in http://github.com/mattn/zencoding-vim/raw/master/TUTORIAL
This is an upgrade for ZenCoding.vim: fixed indentation and $$$ problem. fixed about missing support multiple classes. - '0.31': |
- '0.30': | This is an upgrade for ZenCoding.vim: fixed indentation and $$$ problem. fixed about missing support multiple classes.
This is an upgrade for ZenCoding.vim: Fixed key assign. - '0.30': |
- '0.29': | This is an upgrade for ZenCoding.vim: Fixed key assign.
This is an upgrade for ZenCoding.vim: Changed leading key to '<c-y>' from '<c-z>'. - '0.29': |
- '0.28': | This is an upgrade for ZenCoding.vim: Changed leading key to '<c-y>' from '<c-z>'.
This is an upgrade for ZenCoding.vim: supported 'Balance Tag Inward/Outward', 'Go to Next/Previous Edit Point', 'Update <img> Size', 'Remove Tag', 'Split/Join Tag', 'Toggle Comment' - '0.28': |
- '0.27': | This is an upgrade for ZenCoding.vim: supported 'Balance Tag Inward/Outward', 'Go to Next/Previous Edit Point', 'Update <img> Size', 'Remove Tag', 'Split/Join Tag', 'Toggle Comment'
This is an upgrade for ZenCoding.vim: fixed problem that can't work on the part of multibyte characters. fixed inline elements behavior. - '0.27': |
- '0.26': | This is an upgrade for ZenCoding.vim: fixed problem that can't work on the part of multibyte characters. fixed inline elements behavior.
This is an upgrade for ZenCoding.vim: The count of '(((a#foo + a#bar)*2)*3)' should be 12. - '0.26': |
- '0.25': | This is an upgrade for ZenCoding.vim: The count of '(((a#foo + a#bar)*2)*3)' should be 12.
This is an upgrade for ZenCoding.vim: store undo before working. good luck about 'table>(tr>td*3)*4'. - '0.25': |
- '0.24': | This is an upgrade for ZenCoding.vim: store undo before working. good luck about 'table>(tr>td*3)*4'.
This is an upgrade for ZenCoding.vim: fixed behavior of parsing area of visual selection. - '0.24': |
- '0.23': | This is an upgrade for ZenCoding.vim: fixed behavior of parsing area of visual selection.
This is an upgrade for ZenCoding.vim: pre-expand '#header>li<#content' to 'div#header>li<div#content'. support () expression. - '0.23': |
- '0.22': | This is an upgrade for ZenCoding.vim: pre-expand '#header>li<#content' to 'div#header>li<div#content'. support () expression.
This is an upgrade for ZenCoding.vim: expand 'ul+' to 'ul>li'. fix undo ring. support visual selection. when type trigger key on visual select, it request you leader like 'ul>li'. if you give 'ul>li*' as leader, you'll get each separate 'ul>li' tags. and when you give 'blockquote' as leader, you'll get blocked text. - '0.22': |
- '0.21': | This is an upgrade for ZenCoding.vim: expand 'ul+' to 'ul>li'. fix undo ring. support visual selection. when type trigger key on visual select, it request you leader like 'ul>li'. if you give 'ul>li*' as leader, you'll get each separate 'ul>li' tags. and when you give 'blockquote' as leader, you'll get blocked text.
This is an upgrade for ZenCoding.vim: treat xhtml as html. - '0.21': |
- '0.20': | This is an upgrade for ZenCoding.vim: treat xhtml as html.
This is an upgrade for ZenCoding.vim: add option use_zen_complete_tag for complete abbr. - '0.20': |
- '0.19': | This is an upgrade for ZenCoding.vim: add option use_zen_complete_tag for complete abbr.
This is an upgrade for ZenCoding.vim: fixed problem that couldn't expand 'link:css' correctly. - '0.19': |
- '0.18': | This is an upgrade for ZenCoding.vim: fixed problem that couldn't expand 'link:css' correctly.
This is an upgrade for ZenCoding.vim: ignore duplicate key map. - '0.18': |
- '0.17': | This is an upgrade for ZenCoding.vim: ignore duplicate key map.
This is an upgrade for ZenCoding.vim: fixed key map. - '0.17': |
- '0.16': | This is an upgrade for ZenCoding.vim: fixed key map.
This is an upgrade for ZenCoding.vim: fixed problem 'endless loop'. - '0.16': |
- '0.15': | This is an upgrade for ZenCoding.vim: fixed problem 'endless loop'.
This is an upgrade for ZenCoding.vim: set default filetype to 'html'. - '0.15': |
- '0.14': | This is an upgrade for ZenCoding.vim: set default filetype to 'html'.
This is an upgrade for ZenCoding.vim: fixed tag name like 'fs:n' in 'css'. - '0.14': |
- '0.14': | This is an upgrade for ZenCoding.vim: fixed tag name like 'fs:n' in 'css'.
This is an upgrade for ZenCoding.vim: indentation for each languages. - '0.14': |
- '0.13': | This is an upgrade for ZenCoding.vim: indentation for each languages.
This is an upgrade for ZenCoding.vim: user key map. - '0.13': |
- '0.12': | This is an upgrade for ZenCoding.vim: user key map.
This is an upgrade for ZenCoding.vim: few extensive notation. - '0.12': |
- '0.11': | This is an upgrade for ZenCoding.vim: few extensive notation.
This is an upgrade for ZenCoding.vim: fixed indent. - '0.11': |
- '0.10': | This is an upgrade for ZenCoding.vim: fixed indent.
This is an upgrade for ZenCoding.vim: fixed behavior of '+' operator - '0.10': |
- '0.9': | This is an upgrade for ZenCoding.vim: fixed behavior of '+' operator
This is an upgrade for ZenCoding.vim: fixed single line behavior - '0.9': |
- '0.8': | This is an upgrade for ZenCoding.vim: fixed single line behavior
This is an upgrade for ZenCoding.vim: support 'a[href=http://www.google.com]{Google}' - '0.8': |
- '0.7': | This is an upgrade for ZenCoding.vim: support 'a[href=http://www.google.com]{Google}'
This is an upgrade for ZenCoding.vim: fixed behavior in 'a+b'. - '0.7': |
- '0.6': | This is an upgrade for ZenCoding.vim: fixed behavior in 'a+b'.
This is an upgrade for ZenCoding.vim: fixed strange behavior about '<a href="">b_</a>'. - '0.6': |
- '0.5': | This is an upgrade for ZenCoding.vim: fixed strange behavior about '<a href="">b_</a>'.
This is an upgrade for ZenCoding.vim: recover rest part in line. - '0.5': |
- '0.4': | This is an upgrade for ZenCoding.vim: recover rest part in line.
This is an upgrade for ZenCoding.vim: fixed cursor position. fixed ${lang} replacement. - '0.4': |
- '0.3': | This is an upgrade for ZenCoding.vim: fixed cursor position. fixed ${lang} replacement.
This is an upgrade for ZenCoding.vim: fixed line expanding. - '0.3': |
- '0.2': | This is an upgrade for ZenCoding.vim: fixed line expanding.
This is an upgrade for ZenCoding.vim: fixed problem that moving cursor with expanding. - '0.2': |
- '0.1': | This is an upgrade for ZenCoding.vim: fixed problem that moving cursor with expanding.
Initial upload - '0.1': |
Initial upload
# __END__
# vim: filetype=yaml # __END__
# vim: filetype=yaml