diff --git a/README.mkd b/README.mkd index 869cf47..2f08e17 100644 --- a/README.mkd +++ b/README.mkd @@ -31,7 +31,7 @@ or: ## Quick Tutorial Open or create New File: - + vim index.html Type ("_" is the cursor position): @@ -58,7 +58,7 @@ Then type "," (Ctrl + y + ','), you should see: If you don't want enable zencoding in all mode, you can use set a option in `vimrc`: - + let g:user_zen_mode='n' "only enable normal mode functions. let g:user_zen_mode='inv' "enable all functions, which is equal to let g:user_zen_mode='a' "enable all function in all mode. @@ -86,7 +86,7 @@ you can use set a option in `vimrc`: > > - + ### Japanese blog posts about zencoding-vim: > diff --git a/TUTORIAL b/TUTORIAL index c76fa8b..3ee49d4 100644 --- a/TUTORIAL +++ b/TUTORIAL @@ -68,7 +68,7 @@ Tutorial of zencoding.vim --------------------- --------------------- - Type 'i' on img tag + Type 'i' on img tag --------------------- --------------------- @@ -101,7 +101,7 @@ Tutorial of zencoding.vim Type 'k' in insert mode. ---------------------
- +
--------------------- diff --git a/autoload/zencoding/lang/css.vim b/autoload/zencoding/lang/css.vim index 5b1c118..cabd777 100644 --- a/autoload/zencoding/lang/css.vim +++ b/autoload/zencoding/lang/css.vim @@ -10,7 +10,7 @@ function! zencoding#lang#css#parseIntoTree(abbr, type) let settings = zencoding#getSettings() let indent = zencoding#getIndentation(type) - + let root = { 'name': '', 'attr': {}, 'child': [], 'snippet': '', 'multiplier': 1, 'parent': {}, 'value': '', 'pos': 0, 'important': 0 } " emmet @@ -45,7 +45,7 @@ function! zencoding#lang#css#parseIntoTree(abbr, type) endif endfor endif - + let tag_name = token if tag_name =~ '.!$' let tag_name = tag_name[:-2] @@ -56,14 +56,14 @@ function! zencoding#lang#css#parseIntoTree(abbr, type) " make default node let current = { 'name': '', 'attr': {}, 'child': [], 'snippet': '', 'multiplier': 1, 'parent': {}, 'value': '', 'pos': 0, 'important': important } let current.name = tag_name - + " aliases let aliases = zencoding#getResource(type, 'aliases', {}) if has_key(aliases, tag_name) let current.name = aliases[tag_name] endif let use_pipe_for_cursor = zencoding#getResource(type, 'use_pipe_for_cursor', 1) - + " snippets let snippets = zencoding#getResource(type, 'snippets', {}) if !empty(snippets) && has_key(snippets, tag_name) @@ -83,7 +83,7 @@ function! zencoding#lang#css#parseIntoTree(abbr, type) let current.snippet .= "\n" endif endif - + let current.pos = 0 let lg = matchlist(token, '^\%(linear-gradient\|lg\)(\s*\(\w\+\)\s*,\s*\([^,]\+\)\s*,\s*\([^)]\+\)\s*)$') if len(lg) diff --git a/doc/zencoding.txt b/doc/zencoding.txt index 5003ad8..730e8b3 100644 --- a/doc/zencoding.txt +++ b/doc/zencoding.txt @@ -1,7 +1,7 @@ *zencoding.txt* ZenCoding for Vim ------------------------------------------------------- - ZenCoding: vim plugins for HTML and CSS hi-speed coding + ZenCoding: vim plugins for HTML and CSS hi-speed coding ------------------------------------------------------- Author: Yasuhiro Matsumoto @@ -160,7 +160,7 @@ You should copy this section and create new buffer, paste and write as
< If cursor is at '*', |n| move a cursor into attribute value of div - specified id as 'foo'. And type again |n| move a cursor into inner of + specified id as 'foo'. And type again |n| move a cursor into inner of div specified id as 'bar'. 6. Go to Previous Edit Point *zencoding-goto-previous-point* *N* @@ -175,11 +175,11 @@ You should copy this section and create new buffer, paste and write as 7. Update Size *zencoding-update-image-size* *i* - To expand or update size of image, type |i| on img tag + To expand or update size of image, type |i| on img tag > < - Type 'i' on img tag + Type 'i' on img tag > < @@ -215,7 +215,7 @@ You should copy this section and create new buffer, paste and write as Type |k| in insert mode, then >
- +
< And type |k| in there again, then div will be removed. diff --git a/plugin/zencoding.vim b/plugin/zencoding.vim index e627653..0205042 100644 --- a/plugin/zencoding.vim +++ b/plugin/zencoding.vim @@ -180,7 +180,7 @@ function! s:install_plugin_v() endfunction -if exists('g:user_zen_mode') +if exists('g:user_zen_mode') let imode = matchstr(g:user_zen_mode, '[ai]') let nmode = matchstr(g:user_zen_mode, '[an]') let vmode = matchstr(g:user_zen_mode, '[av]') diff --git a/zencoding.vim.vimup b/zencoding.vim.vimup index d91e621..12b1c02 100644 --- a/zencoding.vim.vimup +++ b/zencoding.vim.vimup @@ -13,10 +13,10 @@ detailed_description: | 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_ @@ -49,7 +49,7 @@ detailed_description: | |
| _ +------------------------------------- - + Tutorial: http://github.com/mattn/zencoding-vim/raw/master/TUTORIAL @@ -59,10 +59,10 @@ detailed_description: | http://mattn.github.com/zencoding-vim Tips: - + You can customize behavior of expanding with overriding config. - This configuration will be merged at loading plugin. - + This configuration will be merged at loading plugin. + let g:user_zen_settings = { \ 'indentation' : ' ', \ 'perl' : {