VIM:让​​自动完成智慧 [英] Vim: Making Auto-Completion Smarter

查看:184
本文介绍了VIM:让​​自动完成智慧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用CTAGS,标记列表等方式,在Vim的自动完成。然而,它是相对于的Visual Studio智能感知或者Eclipse自动完成非常有限。我不知道是否有可能调整Vim来:

I use ctags, taglist, etc., to have auto completion in Vim. However, it is very limited compared to Visual Studio intellisense or Eclipse auto-completion. I am wondering whether it is possible to tune Vim to:


  1. 显示自动完成时。或者 - >键入的。但只有在一些文字,可能是一个变量(例如,避免呈现出号码后自动完成)。

  1. Show auto-completion whenever . or -> are typed. But only after some text that might be a variable (e.g. avoid showing auto completion after a number).

显示功能参数时(键入

停止删除自动完成列表时,一些后删除所有字符。或 - >:当我输入变量名,那么preSS。或 - >搜索某个成员,我经常要我删除后键入的所有字符。或 - >,但是这使得隐藏的Vim自动完成列表。我想保持它可见,除非我preSS Esc键。

Stop removing the auto completion list when some delete all characters after . or ->: When I enter a variable name, then press . or -> to search for a certain member, I frequently have to delete all the characters I type after the . or ->, but this makes Vim hide the auto completion list. I would like to keep it visible unless I press Esc.

显示相关的自动完成:当我键入一个变量,preSS ^ X ^ o,它通常表明我的ctags的文件中的所有标签。我想有只显示相关的变量标签。

Showing related auto completion: When I type a variable and press ^X ^O, it usually shows me all the tags in the ctags file. I would like to have it showing only the tags related to the variable.

感谢您的帮助。

修改:有些人投票给了这个问题,但没有身体似乎知道答案。所以,只是想提一提,你没有提供一个完整的答案;任何提点的部分答案是还不错。

EDIT: Some people are voting for this question, but no body seems to know the answer. So just wanted to mention that you don't have to provide a complete answer; partial answers to any of the mentioned points would be good also.

推荐答案

AutoComplPop 是什么你所需要的。

这篇关于VIM:让​​自动完成智慧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆