Vim:打开假设某些文件类型/语法突出显示(Vim: open assuming certain file type/syntax highlighting)

如何使用突出显示降价文件(.md)的突出显示的命令打开vim

我不是试图实际编辑.md文件

谢谢

How would you open vim with a command that makes it highlight as it highlights markdown files (.md)

I am not trying to actually edit a .md file

Thanks

最满意答案

从命令行?

vim +'set ft=markdown' file

From the command line?

vim +'set ft=markdown' file

更多推荐