我在 Vim 中编辑 Ruby 文件时看到这个窗口.它是什么? [英] I get this window while editing Ruby Files in Vim. What is it?

查看:25
本文介绍了我在 Vim 中编辑 Ruby 文件时看到这个窗口.它是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 VIM 中编辑 Ruby 文件时,我通常会突然打开这个新窗口.这令人恼火,因为在处理过程中我无法输入任何内容.它通常是任意发生的.这里有人知道哪个插件可以做到这一点吗?或者这是某种 VIM 的过程?

I usually get this new window open up suddenly while I am editing a Ruby file in VIM. This is getting irritating because, i cant type in anything while its processing. And it usually happens arbitarily. Does any one here know which plugin could be doing this? Or is this somekind of VIM's process?

推荐答案

我在我的工作桌面上有同样的问题,但在我的家用机器上没有.设置几乎相同.

I have this same issue on my work desktop, but not my home machine. The setups are near identical.

在寻找可能的原因时,我注意到当我将光标悬停在诸如 File 之类的 Ruby 符号上时,Vim 会弹出 File 类的简短描述.在比较了我能找到的所有各种 vim 脚本和 ri 相关文件后,我终于确定了唯一有效的解决方案......

While stalking down a possible cause, I noticed that when I leave my cursor over a Ruby symbol such as File, Vim would popup a short description of the File class. After comparing all the various vim scripts and ri-related files that I could find, I finally settled on the only solution that worked...

打开 $HOME/_vimrc 并添加以下行:

Open $HOME/_vimrc and add the following line:

autocmd FileType ruby,eruby set noballooneval

之前,我注释掉了 $VIMRUNTIME/ftplugin/ruby.vim 中的一个块,但是 Brian Carper 提出了一个更好的解决方案 :set noballooneval.我添加了 autocmd 行,所以它只用 Ruby 文件执行.

Previously, I commented out a block in $VIMRUNTIME/ftplugin/ruby.vim, but Brian Carper suggested a better solution of :set noballooneval. I added the autocmd line so it is only executed with Ruby files.

如果有人想出真正的解决方案,请与我联系.:(

If anyone figures out a true solution, please contact me. :(

这篇关于我在 Vim 中编辑 Ruby 文件时看到这个窗口.它是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆