script_name: ZenCoding.vim script_id: '2981' script_type: utility script_package: zencoding.vim script_version: '0.27' required_vim_version: '7.0' summary: vim plugins for HTML and CSS hi-speed coding. detailed_description: | ******************************************************** * Warning ******************************************************** If version of zencoding.vim is smaller than '0.21', you have older file in your '$HOME/.vim/plugin'(or '$HOME/vimfiles/plugin') directory. Newer become ftplugin script. Thus you should remove older script and copy new plugin to '$HOME/.vim/ftplugin/html'(or '$HOME/vimfiles/ftplugin/html') directory. ******************************************************** This is vim script support expanding abbreviation like zen-coding. ref: http://code.google.com/p/zen-coding/ Type abbreviation +------------------------------------- | html:5_ +------------------------------------- "_" is a cursor position. and type "," (Ctrl + z and Comma) NOTE: Don't worry about key map. you can change it easily. +------------------------------------- | | | | | | | | _ | | +------------------------------------- Type following +------------------------------------- | div#foo$*2>div.bar +------------------------------------- And type "," +------------------------------------- |
|
_
|
|
|
|
| _ +------------------------------------- Tips: You can customize behavior of expanding with overriding config. This configuration will be marged at loading plugin. let g:user_zen_settings = { \ 'indentation' : ' ', \ 'perl' : { \ 'aliases' : { \ 'req' : 'require ' \ }, \ 'snippets' : { \ 'use' : "use strict\nuse warnings\n\n", \ 'warn' : "warn \"|\";", \ } \ } \} let g:user_zen_expandabbr_key = '' let g:use_zen_complete_tag = 1 You can set language attribute in html using zen_settings['lang']. install_details: | copy zencoding.vim to your plugin directory. versions: - '0.27': | This is an upgrade for ZenCoding.vim: fixed problem that can't work on the part of multibyte characters. fixed inline elements behavior. - '0.26': | This is an upgrade for ZenCoding.vim: The count of '(((a#foo + a#bar)*2)*3)' should be 12. - '0.25': | This is an upgrade for ZenCoding.vim: store undo before working. good luck about 'table>(tr>td*3)*4'. - '0.24': | This is an upgrade for ZenCoding.vim: fixed behavior of parsing area of visual selection. - '0.23': | This is an upgrade for ZenCoding.vim: pre-expand '#header>li<#content' to 'div#header>lili'. 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.21': | This is an upgrade for ZenCoding.vim: treat xhtml as html. - '0.20': | This is an upgrade for ZenCoding.vim: add option use_zen_complete_tag for complete abbr. - '0.19': | This is an upgrade for ZenCoding.vim: fixed problem that couldn't expand 'link:css' correctly. - '0.18': | This is an upgrade for ZenCoding.vim: ignore duplicate key map. - '0.17': | This is an upgrade for ZenCoding.vim: fixed key map. - '0.16': | This is an upgrade for ZenCoding.vim: fixed problem 'endless loop'. - '0.15': | This is an upgrade for ZenCoding.vim: set default filetype to 'html'. - '0.14': | This is an upgrade for ZenCoding.vim: fixed tag name like 'fs:n' in 'css'. - '0.14': | This is an upgrade for ZenCoding.vim: indentation for each languages. - '0.13': | This is an upgrade for ZenCoding.vim: user key map. - '0.12': | This is an upgrade for ZenCoding.vim: few extensive notation. - '0.11': | This is an upgrade for ZenCoding.vim: fixed indent. - '0.10': | This is an upgrade for ZenCoding.vim: fixed behavior of '+' operator - '0.9': | This is an upgrade for ZenCoding.vim: fixed single line behavior - '0.8': | This is an upgrade for ZenCoding.vim: support 'a[href=http://www.google.com]{Google}' - '0.7': | This is an upgrade for ZenCoding.vim: fixed behavior in 'a+b'. - '0.6': | This is an upgrade for ZenCoding.vim: fixed strange behavior about 'b_'. - '0.5': | This is an upgrade for ZenCoding.vim: recover rest part in line. - '0.4': | This is an upgrade for ZenCoding.vim: fixed cursor position. fixed ${lang} replacement. - '0.3': | This is an upgrade for ZenCoding.vim: fixed line expanding. - '0.2': | This is an upgrade for ZenCoding.vim: fixed problem that moving cursor with expanding. - '0.1': | Initial upload # __END__ # vim: filetype=yaml