mattn / emmet-vim

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

customization on emmet's snippets.json file #373

Closed yufeiluo closed 7 years ago

yufeiluo commented 7 years ago

ENV:debian+vim+emmet.

1.no backslah at the end of tag when to expand abbreviation

Here is link abbreviation on my .vim/snippets.json file.

"link": "<link rel=\"stylesheet\" href=\"\" />",

When to expand link in emmet ,i get the below output:

<link rel="stylesheet" href="">

Why can't get

<link rel="stylesheet" href="" /> 

as output?

2.fail to customize script tag

I expect to expand script as <script src="" type="text/css"></script> sudo vim .vim/snippets.json "script": "<script !src=\"\">",

2.1 What does ! here mean? 2.2 to rewrite

"script": "<script !src=\"\">",

as

"script": "<script src=\"\" type=\"text/javascript\">",

It take no effect when to reboot vim. No <script src="" type="text/css"></script> as expand of script.

mattn commented 7 years ago

set let g:emmet_html5 = 0

yufeiluo commented 7 years ago

vim .vimrc set let g:emmet_html5 = 0 To restart vim.
E518: Unknown option: let

yufeiluo commented 7 years ago

vim .vimrc let g:emmet_html5 = 0

solved