简体   繁体   English

分享 eclim -friendly.vimrc

[英]share eclim -friendly .vimrc

I am trying to to use eclim for my daily development requirements.我正在尝试使用 eclim 来满足我的日常开发需求。 My.vimrc has some issues preventing few functionalities like code completion etc. My.vimrc 有一些问题阻止了一些功能,如代码完成等。

It would be great if anyone using eclim regularly share your .vimrc .如果有人使用eclim定期分享您的.vimrc ,那就太好了。

You can find my vim setup on github.您可以在 github 上找到我的 vim 设置 I use eclim to do Android development.我用eclim做Android开发。

See visualstudioinvoke.vim for how I launch Vim from eclim.请参阅visualstudioinvoke.vim了解我如何从 eclim 启动 Vim。 This isn't necessary, but it's useful to start at the current line in the current file.这不是必需的,但从当前文件的当前行开始很有用。 It also sets up my eclim menu, bindings, and settings.它还设置了我的 eclim 菜单、绑定和设置。

It's best to start the eclim server (by opening the "Eclim" eclipse tab) before you start gvim.最好在启动 gvim之前启动 eclim 服务器(通过打开“Eclim”eclipse 选项卡)。

I have eclim's code completion mapped to Ctrl - Space .我将 eclim 的代码完成映射到Ctrl - Space

You won't get any code completion for classes that aren't in the scope of the current file.对于不在当前文件的 scope 中的类,您将不会获得任何代码完成。 To import, I have a menu option under Eclim > ImportMissing.要导入,我在 Eclim > ImportMissing 下有一个菜单选项。


However, my vimrc might be pretty alien to you, so you might be better served whittling down your vimrc until you figure out what's breaking things.然而,我的 vimrc 对你来说可能很陌生,所以你最好减少你的 vimrc,直到你弄清楚什么是破坏性的东西。 The default map for completions is Ctrl - x Ctrl - u .完成的默认 map 是Ctrl - x Ctrl - u You can use :verb map <Cx> to search for maps that start the same way and it will show you where they're defined.您可以使用:verb map <Cx>搜索以相同方式开始的地图,它会显示它们的定义位置。

If you use SuperTab , try disabling it.如果您使用SuperTab ,请尝试禁用它。 SuperTab and eclim are both maintained by SuperTab 和 eclim 都由
Eric Van Dewoestine so they should be compatible, but you may have a SuperTab configuration problem. Eric Van Dewoestine 所以它们应该是兼容的,但是你可能有一个 SuperTab 配置问题。

You could also try updating all of your plugins.您也可以尝试更新所有插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM