Vim code completion

瘦欲@ 提交于 2019-12-03 03:43:24

It's possible, but most people don't.

vim is a fairly generic editor, that said, it does contain some "code completion" features such as word completion, etcetera, but nothing like the likes of, say, Delphi's IDE.

Such a system could be added by scripting vim - vim can directly run several scripting languages that make this easy, or you could send the file through an external script.

Clang Complete lets you use Clang for accurate auto-completion of C and C++

I believe that following this list of links you will be able to leave any IDE and become a faithful user of vim, see some plugins that help you with IDE resources...

This is a little out dated. A rising star in Vim code completion is the "YouCompleteMe" plugin. Check it out here.

Omni completion is definitely the way to go. Instantiate it in insert mode with Ctrl+X Ctrl+O.

I use it in conjunction with SuperTab as well to allow for tab completion similar to bash shell.

Don't use it myself but I have heard of Omni complete:

http://vim.wikia.com/wiki/Omni_completion

The Vim Wiki contains a couple of things that may be of use for auto completion of words.

You can try this out Dictionary completions, get dictionary for you language. Simple ways

if you are programming in c++, there are ctag and cscope and with OmniCppComplete plugin.

Hope it will help

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!