mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
check normal mode or not.
This commit is contained in:
@@ -780,8 +780,7 @@ function! zencoding#expandAbbr(mode) range
|
|||||||
" TODO: on windows, %z/%Z is 'Tokyo(Standard)'
|
" TODO: on windows, %z/%Z is 'Tokyo(Standard)'
|
||||||
let expand = substitute(expand, '${datetime}', strftime("%Y-%m-%dT%H:%M:%S %z"), 'g')
|
let expand = substitute(expand, '${datetime}', strftime("%Y-%m-%dT%H:%M:%S %z"), 'g')
|
||||||
endif
|
endif
|
||||||
"if a:mode == 2
|
if a:mode != 0 && visualmode() ==# 'v'
|
||||||
if visualmode() ==# 'v'
|
|
||||||
if a:firstline == a:lastline
|
if a:firstline == a:lastline
|
||||||
let expand = substitute(expand, '\n\s*', '', 'g')
|
let expand = substitute(expand, '\n\s*', '', 'g')
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user