check normal mode or not.

This commit is contained in:
mattn
2011-12-05 14:50:47 +09:00
parent 513578327c
commit 1f4dbe3917

View File

@@ -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