From 7f0e2a13d09b8010f797e3a177d65b974e5abfe8 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 15 Mar 2010 20:35:21 +0900 Subject: [PATCH] use default type for install to ~/.vim/plugin/zencoding.vim --- zencoding.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zencoding.vim b/zencoding.vim index 899221a..5ddeeab 100644 --- a/zencoding.vim +++ b/zencoding.vim @@ -880,10 +880,10 @@ endfunction function! s:zen_parseIntoTree(abbr, type) let abbr = a:abbr let type = a:type - if len(type) == 0 | let type = 'html' | endif if !has_key(s:zen_settings, type) - return { 'child': [] } + let type = 'html' endif + if len(type) == 0 | let type = 'html' | endif if has_key(s:zen_settings[type], 'indentation') let indent = s:zen_settings[type].indentation @@ -1068,6 +1068,9 @@ function! s:zen_toString(...) else let type = '' endif + if !has_key(s:zen_settings, type) + let type = 'html' + endif if len(type) == 0 | let type = 'html' | endif if a:0 > 2 let inline = a:3