From 1f4dbe3917358462f05373fe7dcd0085d8646a82 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 5 Dec 2011 14:50:47 +0900 Subject: [PATCH] check normal mode or not. --- autoload/zencoding.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/zencoding.vim b/autoload/zencoding.vim index b00172a..fd424be 100644 --- a/autoload/zencoding.vim +++ b/autoload/zencoding.vim @@ -780,8 +780,7 @@ function! zencoding#expandAbbr(mode) range " TODO: on windows, %z/%Z is 'Tokyo(Standard)' let expand = substitute(expand, '${datetime}', strftime("%Y-%m-%dT%H:%M:%S %z"), 'g') endif - "if a:mode == 2 - if visualmode() ==# 'v' + if a:mode != 0 && visualmode() ==# 'v' if a:firstline == a:lastline let expand = substitute(expand, '\n\s*', '', 'g') else