简体   繁体   English

vim中的类似XCode的自动完成(没有标签)?

[英]XCode-like auto completion in vim (without tab)?

Greetings. 问候。 I've been using vim for years, and I've recently started toying with XCode. 我已经使用vim多年了,我最近开始玩XCode。 One of the things I really like about XCode is that it will auto complete words without me hitting <TAB> . 我真正喜欢XCode的一件事就是它会自动完成单词, 而不会让我点击<TAB>

For instance, in this image below I only need to type NSSObj and the rest is filled in automatically, no special keystroke required. 例如,在下图中我只需要键入NSSObj ,其余部分自动填写,无需特殊按键。

替代文字

I'd like to reproduce this effect in vim. 我想在vim中重现这种效果。

To be clear, this question is not about how to get tab/omni-completion working in vim. 要清楚,这个问题不是关于如何在vim中使用tab / omni-completion工作。 I've already got tab/omni completion working just fine and that's not a problem. 我已经完成了tab / omni完成工作,这不是问题。 The question is: does anyone know how to get vim to autocomplete as I am typing ? 问题是: 当我打字时,有没有人知道如何让vim自动完成?

vimscripts有一个名为autocomplpop.vim的插件可以满足您的需求。

另一种选择是由Shougo制作的名为neocomplcache的vim脚本。

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

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