From 857809e676c1a4f4ab70c64fb0ae37156ac39b54 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 9 Apr 2013 18:55:21 +0900 Subject: [PATCH] Fix guessing filetype --- autoload/zencoding.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/zencoding.vim b/autoload/zencoding.vim index 04c44fe..30fbadf 100644 --- a/autoload/zencoding.vim +++ b/autoload/zencoding.vim @@ -260,8 +260,8 @@ function! zencoding#getFileType() let type = &ft if zencoding#lang#exists(&ft) let type = &ft - else - let type = zencoding#getBaseType(type) + elseif zencoding#getBaseType(type) != "" + let type = &ft endif if type == 'html' let type = synIDattr(synID(line("."), col("."), 1), "name")