ZenCoding.vim : vim plugins for HTML and CSS hi-speed coding.
| script karma |
Rating 319/92,
Downloaded by 3474 |
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Yasuhiro Matsumoto |
| |
| script type |
| utility |
| |
| description |
******************************************************** * Warning ******************************************************** Leading key '<c-z>' was changed to '<c-y>' at version '0.29'. ******************************************************** 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/
There is a movie using zencoding.vim ref: http://mattn.github.com/zencoding-vim
Source Repository. ref: http://github.com/mattn/zencoding-vim
Type abbreviation +------------------------------------- | html:5_ +------------------------------------- "_" is a cursor position. and type "<c-y>," (Ctrl + y and Comma) NOTE: Don't worry about key map. you can change it easily. +------------------------------------- | <!DOCTYPE HTML> | <html lang="en"> | <head> | <title></title> | <meta charset="UTF-8"> | </head> | <body> | _ | </body> | </html> +------------------------------------- Type following +------------------------------------- | div#foo$*2>div.bar +------------------------------------- And type "<c-y>," +------------------------------------- |<div id="foo1"> | <div class="bar">_</div> |</div> |<div id="foo2"> | <div class="bar"></div> |</div> | _ +-------------------------------------
Tutorial:
http://github.com/mattn/zencoding-vim/raw/master/TUTORIAL
How work this:
http://mattn.github.com/zencoding-vim
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 = '<c-e>'
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.
|
| |
script versions (upload new version)
Click on the package to download.
| zencoding.vim |
0.44 |
2010-09-06 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for ZenCoding.vim: fixed checking whether have mapping using maparg() / hasmapto().
|
| zencoding.vim |
0.43 |
2010-06-11 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for ZenCoding.vim: 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))"
|
| zencoding.vim |
0.41 |
2010-05-31 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for ZenCoding.vim: fixed default filter. when using 'e' filter, output become empty.
|
| zencoding.vim |
0.40 |
2010-05-13 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for ZenCoding.vim: add the pure vimscript code for 'get image size'. you can use it without perl interface just now. change key assign of ZenCodingExpandWord from ',' to ';'. it don't effect to most users.
|
| zencoding.vim |
0.39 |
2010-05-11 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for ZenCoding.vim: fixed problem about 'selection'. see http://github.com/mattn/zencoding-vim/issues/#issue/2
|
| zencoding.vim |
0.38 |
2010-05-10 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for ZenCoding.vim: use v7h"_s instead of v7hs for backspace.
|
| zencoding.vim |
0.37 |
2010-05-06 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for ZenCoding.vim: fixed problem that won't working with some 'backspace' options.
|
| zencoding.vim |
0.36 |
2010-03-17 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for ZenCoding.vim: fixed problem that filter does not work.
|
| zencoding.vim |
0.35 |
2010-03-16 |
7.0 |
Yasuhiro Matsumoto |
This is an upgrade for ZenCoding.vim: enable zencoding for other languages. (meaning php also)
|
|