小编Eri*_*rik的帖子

VIM 不检测 .ssh/config 的语法

vi ~/.ssh/config
  :set syn?
  >syntax=conf
Run Code Online (Sandbox Code Playgroud)

当我做:

set syn=sshconfig
Run Code Online (Sandbox Code Playgroud)

然后语法高亮就是它应该的样子。

为什么不能自动识别文件类型?以及如何自动设置?

ssh vim syntax-highlighting

2
推荐指数
1
解决办法
2318
查看次数

标签 统计

ssh ×1

syntax-highlighting ×1

vim ×1