diff --git a/autoload/emmet.vim b/autoload/emmet.vim index 7fe362a..5b1098a 100644 --- a/autoload/emmet.vim +++ b/autoload/emmet.vim @@ -101,6 +101,13 @@ function! emmet#parseIntoTree(abbr, type) return emmet#lang#{rtype}#parseIntoTree(abbr, type) endfunction +function! emmet#expandAbbrIntelligent(feedkey) + if !emmet#isExpandable() + return a:feedkey + endif + return "\(EmmetExpandAbbr)" +endfunction + function! emmet#isExpandable() let line = getline('.') if col('.') < len(line)