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 myfile.Z时,当然会解压缩它(这通常是我想要的)。我怎样才能禁用它(最好是某种命令行参数或其他东西,这样我就不必来回编辑我的 .vimrc 文件)。
vim myfile.Z
Vim 初始化后,可以通过以下方式禁用gzip 插件
:autocmd! gzip
如果您只想禁用单个文件的特殊处理,我会使用
:noautocmd edit myfile.Z
如果将此行添加到您的.vimrc
.vimrc
:let loaded_gzip = 1