use default type for install to ~/.vim/plugin/zencoding.vim

This commit is contained in:
mattn
2010-03-15 20:35:21 +09:00
parent 8c958179a3
commit 7f0e2a13d0

View File

@@ -880,10 +880,10 @@ endfunction
function! s:zen_parseIntoTree(abbr, type) function! s:zen_parseIntoTree(abbr, type)
let abbr = a:abbr let abbr = a:abbr
let type = a:type let type = a:type
if len(type) == 0 | let type = 'html' | endif
if !has_key(s:zen_settings, type) if !has_key(s:zen_settings, type)
return { 'child': [] } let type = 'html'
endif endif
if len(type) == 0 | let type = 'html' | endif
if has_key(s:zen_settings[type], 'indentation') if has_key(s:zen_settings[type], 'indentation')
let indent = s:zen_settings[type].indentation let indent = s:zen_settings[type].indentation
@@ -1068,6 +1068,9 @@ function! s:zen_toString(...)
else else
let type = '' let type = ''
endif endif
if !has_key(s:zen_settings, type)
let type = 'html'
endif
if len(type) == 0 | let type = 'html' | endif if len(type) == 0 | let type = 'html' | endif
if a:0 > 2 if a:0 > 2
let inline = a:3 let inline = a:3