在 VIM 中禁用警告? [英] Disable warning in VIM?
本文介绍了在 VIM 中禁用警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在 VIM 中禁用警告?
Is there a way to disable warnings in VIM?
特别是,当文件从只读变为可写时,我想禁用警告 12.我有一个脚本可以在 perforce 中打开文件进行编辑,但 vim 认为文件已更改并发出警告.
In particular, I want to disable Warning 12 when a file turns from read-only to writable. I have a script which opens the file for edit in perforce, but vim thinks the file has changed and issues a warning.
谢谢
推荐答案
将以下行添加到您的 .vimrc 文件中:
add the following line to your .vimrc file :
设置自动读取
这将禁用只读到可写"警告
This will disable "read-only to writeable" warnings
这篇关于在 VIM 中禁用警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文