mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
add vimup file.
This commit is contained in:
100
zencoding.vim
100
zencoding.vim
@@ -8,54 +8,62 @@
|
|||||||
" SeeAlso: http://code.google.com/p/zen-coding/
|
" SeeAlso: http://code.google.com/p/zen-coding/
|
||||||
" Usage:
|
" Usage:
|
||||||
"
|
"
|
||||||
" Type abbreviation
|
" This is vim script support expanding abbreviation like zen-coding.
|
||||||
" +-------------------------------------
|
" ref: http://code.google.com/p/zen-coding/
|
||||||
" | html:5_
|
"
|
||||||
" +-------------------------------------
|
" Type abbreviation
|
||||||
" "_" is a cursor position. and type <c-z>,
|
" +-------------------------------------
|
||||||
" +-------------------------------------
|
" | html:5_
|
||||||
" | <!DOCTYPE HTML>
|
" +-------------------------------------
|
||||||
" | <html lang="${langfull}">
|
" "_" is a cursor position. and type "<c-z>,"
|
||||||
" | <head>
|
" +-------------------------------------
|
||||||
" | <title></title>
|
" | <!DOCTYPE HTML>
|
||||||
" | <meta charset="UTF-8">
|
" | <html lang="${langfull}">
|
||||||
" | </head>
|
" | <head>
|
||||||
" | <body>
|
" | <title></title>
|
||||||
" | _
|
" | <meta charset="UTF-8">
|
||||||
" | </body>
|
" | </head>
|
||||||
" | </html>
|
" | <body>
|
||||||
" +-------------------------------------
|
" | _
|
||||||
" type following
|
" | </body>
|
||||||
" +-------------------------------------
|
" | </html>
|
||||||
" | div#foo$*2>div.bar
|
" +-------------------------------------
|
||||||
" +-------------------------------------
|
" Type following
|
||||||
" and type <c-z>,
|
" +-------------------------------------
|
||||||
" +-------------------------------------
|
" | div#foo$*2>div.bar
|
||||||
" | <div id="foo$">
|
" +-------------------------------------
|
||||||
" | <div class="bar">
|
" And type "<c-z>,"
|
||||||
" | </div>
|
" +-------------------------------------
|
||||||
" | </div>
|
" |<div id="foo1">
|
||||||
" | _
|
" | <div class="bar">
|
||||||
" +-------------------------------------
|
" | </div>
|
||||||
"
|
" |</div>
|
||||||
|
" |<div id="foo2">
|
||||||
|
" | <div class="bar">
|
||||||
|
" | </div>
|
||||||
|
" |</div>
|
||||||
|
" | _
|
||||||
|
" +-------------------------------------
|
||||||
|
"
|
||||||
" Tips:
|
" Tips:
|
||||||
|
"
|
||||||
|
" You can customize behaviour 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 \"|\";",
|
||||||
|
" \ }
|
||||||
|
" \ }
|
||||||
|
" \}
|
||||||
"
|
"
|
||||||
" You can customize behaviour of expanding with overriding config.
|
" GetLatestVimScripts: 2981 1 :AutoInstall: zencoding.vim
|
||||||
" 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 \"|\";",
|
|
||||||
" \ }
|
|
||||||
" \ }
|
|
||||||
" \}
|
|
||||||
"
|
|
||||||
" script type: plugin
|
" script type: plugin
|
||||||
|
|
||||||
if &cp || (exists('g:loaded_zencoding_vim') && g:loaded_zencoding_vim)
|
if &cp || (exists('g:loaded_zencoding_vim') && g:loaded_zencoding_vim)
|
||||||
|
|||||||
74
zencoding.vim.vimup
Normal file
74
zencoding.vim.vimup
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
script_name: ZenCoding.vim
|
||||||
|
script_id: '2981'
|
||||||
|
script_type: utility
|
||||||
|
script_package: zencoding.vim
|
||||||
|
script_version: '0.1'
|
||||||
|
required_vim_version: '7.2'
|
||||||
|
summary: vim plugins for HTML and CSS hi-speed coding.
|
||||||
|
|
||||||
|
detailed_description: |
|
||||||
|
|
||||||
|
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 "<c-z>,"
|
||||||
|
+-------------------------------------
|
||||||
|
| <!DOCTYPE HTML>
|
||||||
|
| <html lang="${langfull}">
|
||||||
|
| <head>
|
||||||
|
| <title></title>
|
||||||
|
| <meta charset="UTF-8">
|
||||||
|
| </head>
|
||||||
|
| <body>
|
||||||
|
| _
|
||||||
|
| </body>
|
||||||
|
| </html>
|
||||||
|
+-------------------------------------
|
||||||
|
Type following
|
||||||
|
+-------------------------------------
|
||||||
|
| div#foo$*2>div.bar
|
||||||
|
+-------------------------------------
|
||||||
|
And type "<c-z>,"
|
||||||
|
+-------------------------------------
|
||||||
|
|<div id="foo1">
|
||||||
|
| <div class="bar">
|
||||||
|
| </div>
|
||||||
|
|</div>
|
||||||
|
|<div id="foo2">
|
||||||
|
| <div class="bar">
|
||||||
|
| </div>
|
||||||
|
|</div>
|
||||||
|
| _
|
||||||
|
+-------------------------------------
|
||||||
|
|
||||||
|
Tips:
|
||||||
|
|
||||||
|
You can customize behaviour 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 \"|\";",
|
||||||
|
\ }
|
||||||
|
\ }
|
||||||
|
\}
|
||||||
|
|
||||||
|
install_details: |
|
||||||
|
copy zencoding.vim to your plugin directory.
|
||||||
|
|
||||||
|
versions:
|
||||||
|
- '0.1': |
|
||||||
|
Initial upload
|
||||||
|
|
||||||
|
# __END__
|
||||||
|
# vim: filetype=yaml
|
||||||
Reference in New Issue
Block a user