Closed yufeiluo closed 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
<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=\"\">",
script
<script src="" type="text/css"></script>
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.
set let g:emmet_html5 = 0
let g:emmet_html5 = 0
vim .vimrc set let g:emmet_html5 = 0 To restart vim. E518: Unknown option: let
vim .vimrc let g:emmet_html5 = 0
solved
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.
When to expand
link
in emmet ,i get the below output:Why can't get
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
as
It take no effect when to reboot vim. No
<script src="" type="text/css"></script>
as expand ofscript
.