为什么 vi 不断替换文本?
如何阻止 vi 在打字时替换文本?例如,在 groovy 文件中,当我键入“pl”时,vi 会将其替换为“println”。
How do I stop vi from replacing text while typing? For example, in a groovy file when I type "pl" vi replaces it with "println".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你检查过 .vimrc 文件吗?那里可能有替代品。我帮你用谷歌搜索了一下,结果是 this 结果,可能比您想要的更完整。
Have you checked the .vimrc file? It might have the replacements there. I googled it for you and came up with this result, which might be more complete than you want.
它是由于缩写而发生的,显然不能轻易禁用它。根据 vim 用户邮件列表,我已将以下内容添加到我的 .vimrc 中:
autocmd FileType * abc
It happens due to abbreviations, which apparently cannot be disabled easily. Per the vim users mailing list, I've added the following to my .vimrc:
autocmd FileType * abc