如果加载了特定文件类型的文件,我可以使用autocmd使我的cmd运行.例如对于python:
autocmd FileType python make me happy with python
Run Code Online (Sandbox Code Playgroud)
但是,如果加载的文件不是特定类型,有没有办法让我的cmd运行?就像是:
autocmd FileType !python make me happy without python
Run Code Online (Sandbox Code Playgroud)
上面的示例不起作用,autocmd!将删除autocmd.
有什么建议?谢谢.
vim ×1