我的自动补全有问题。我如何在打字时得到代码建议?

我通常用PHP, Ruby, HTML, C和CSS开发。


当前回答

你可以使用像AutoComplPop这样的插件在你输入的时候自动完成代码。

2015编辑:我个人现在使用YouCompleteMe。

其他回答

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/

在插入模式下,使用Ctrl-N获取单词建议列表。键入:help i_CTRL-N以查看Vim关于此功能的文档。

下面是一个将Python字典导入Vim的示例。

这里是链接!PHP。

在编写一些PHP函数时按下Ctrl + x和Ctrl + o键。

感谢Oseems Solutions提供的教程

如果您使用的是VIM版本8+,只需键入Ctrl + n或Ctrl + p。

你可以使用像AutoComplPop这样的插件在你输入的时候自动完成代码。

2015编辑:我个人现在使用YouCompleteMe。