vim / vi / linux:正确缩进html文件
16lz
2021-01-22
how can I easily indent html files with linux or vi or vim.
如何使用linux或vi或vim轻松缩进html文件。
3 个解决方案
#1
16
If your vim knows it's an html file (:se filetype=html
), you can use the default indentation method (gg=G
). I would have a look at :help =
, it's quite powerful
如果你的vim知道它是一个html文件(:se filetype = html),你可以使用默认的缩进方法(gg = G)。我想看看:help =,它非常强大
更多相关文章
- html 引用文件编码为utf-8 的 js文件乱码问题
- CSS文件filemtime没有调用路径两次
- 当html从本地文件系统运行时,如何获取的内容?
- 如何使用fileupload.js上传多个文件?
- 关于读取HTML文件内容乱码
- 我想在html文件里插入一个for循环,应该如何写
- 文件上传js打开文件管理器过滤只显示指定类型文件的实现
- 如何配置访问WAS部署中的html文件
- Linux hostname主机名配置文件/etc/hosts详解 详细出处参考:http: