我的自动补全有问题。我如何在打字时得到代码建议?
我通常用PHP, Ruby, HTML, C和CSS开发。
我的自动补全有问题。我如何在打字时得到代码建议?
我通常用PHP, Ruby, HTML, C和CSS开发。
当前回答
如果你只想从当前缓冲区的缓存中自动补全,supertab比neocomplete更容易安装,可以在Mac预装的vim上工作,而不需要MacVim。
你可以在vim awesome上查看其他选择。
其他回答
I recently discovered a project called OniVim, which is an electron-based front-end for NeoVim that comes with very nice autocomplete for several languages out of the box, and since it's basically just a wrapper around NeoVim, you have the full power of vim at your disposal if the GUI doesn't meet your needs. It's still in early development, but it is rapidly improving and there is a really active community around it. I have been using vim for over 10 years and started giving Oni a test drive a few weeks ago, and while it does have some bugs here and there it hasn't gotten in my way. I would strongly recommend it to new vim users who are still getting their vim-fingers!
OniVim: https://www.onivim.io/
对于PHP, Padawan和Deoplete是在Neovim中拥有健壮的PHP自动补全的伟大解决方案。我尝试了很多东西,学徒工作很有魅力!
对于Vim,您可以使用Neocomplete而不是Deoplete。
如果有人感兴趣,我写了一篇如何制作Vim PHP IDE的文章。当然,徒弟也是其中之一。
另一个选项是coc.nvim。
它真的很快,补全很棒,因为它使用了与VScode相同的自动补全功能。 它还具有检测功能。这说明你可能有bug。 它支持多种语言。
它可能需要一些设置和配置,但我认为它是vim最好的自动补全引擎。
如果你只想从当前缓冲区的缓存中自动补全,supertab比neocomplete更容易安装,可以在Mac预装的vim上工作,而不需要MacVim。
你可以在vim awesome上查看其他选择。
还有https://github.com/Valloric/YouCompleteMe,它包括像Jedi这样的东西,也有模糊匹配。到目前为止,我发现YCM是我尝试过的最快的。
编辑:也有一些新的网站,如https://github.com/maralla/completor.vim