Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
vim *.inf 文件的 ftplugin 默认通知哪个是关于 Z 机器的。不用说,这为 windows .inf 设备驱动程序文件提供了错误的语法突出显示等。
Windows 驱动程序信息文件的格式(类似于)文件的*.ini格式,而 Vim 有一个语法脚本。
*.ini
:setf dosini
要更改自动检测,请将以下内容放入~/.vim/filetype.vim脚本中:
~/.vim/filetype.vim
if exists('did_load_filetypes') finish endif augroup filetypedetect autocmd BufNewFile,BufRead *.inf setf dosini augroup END