css - 为什么安装在linux中的vim-emmet不能在style标签中展开缩写?
问题描述
vim-emmet
安装在我的 windows 和 linux(debian) 中,并为它们提供相同的 vim 配置文件。test.hmtl
为 windows 和 linux(debian) 创建相同的文件。
cat test.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
img{
}
</style>
</head>
<body>
</body>
</html>
- 在窗口中:
用 vim 打开 test.html 并在 style 的 img 标签中写入 w10。
img{
w10
}
整体test.html
如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
img{
w10
}
</style>
</head>
<body>
</body>
</html>
然后点击热键展开它,我得到:
img{
width : 10px;
}
- 在 Linux 中:
用同样的步骤,
img{
w10
}
扩展到
img{
<w10></w10>
}
如果我test.css
在我的 linux 中编辑 a,
img{
w10
}
扩展到
img{
width : 10px;
}
如何解决?
解决方案
推荐阅读
- javascript - 将倒计时下载按钮更改为文本显示按钮
- oracle-cloud-infrastructure - Oracle 实例无故停止
- c# - 当另一个网格单元格值更改时,一次更改 DataGridView 多个单元格值
- javascript - 如何使用 django 在 developertools 中的 cookie 中添加键和值?
- javascript - 如何在 Javascript 中使用倒数计时器创建随机文本生成器?
- javascript - 如何在打字稿中正确声明全局类型
- java - 电信运营商消息播放前如何处理
- c# - 更新 devexpress 项目的版本
- javascript - VueJS 2 + TypeScript:计算值不检测数据定义的属性
- c# - 使用 ASP.NET 标识时删除 ReturnUrl