From 59c2fb6647dd892eb66913a50a3942c69620fe73 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 26 Mar 2013 12:48:02 +0900 Subject: [PATCH] Check bundled type at the first --- autoload/zencoding.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/zencoding.vim b/autoload/zencoding.vim index be30f7f..a7b2013 100644 --- a/autoload/zencoding.vim +++ b/autoload/zencoding.vim @@ -258,9 +258,10 @@ endfunction function! zencoding#getFileType() let type = &ft - let type = zencoding#getBaseType(type) - if len(type) == 0 && zencoding#lang#exists(&ft) + if zencoding#lang#exists(&ft) let type = &ft + else + let type = zencoding#getBaseType(type) endif if type == 'html' let type = synIDattr(synID(line("."), col("."), 1), "name")