mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.42k stars 411 forks source link

can't expand link as my cutomization in snippets.json #407

Open hwypengsir opened 6 years ago

hwypengsir commented 6 years ago

I expect to epxpand link into

and expect to epxpand link:css into .

Here is my way to customize it. vim .vim/snippets.json "link": "<link type=\"text/css\" rel=\"stylesheet\" href=\"\" />", "link:css": "<link type=\"text/css\" rel=\"stylesheet\" href=\"${1:style}.css\" />", and edit .vimrc let g:emmet_html5 = 0 let g:user_emmet_settings = webapi#json#decode(join(readfile(expand('~/.vim/snippets.json')), "\n"))

I found that in my vim-emmet: link was expanded as

link:css was expanded as

Why link was not expanded as

and link:css was not expanded as .?