code_complete只针对C语言?

Vim、Emacs配置和使用
回复
头像
tianping
帖子: 278
注册时间: 2007-08-26 15:57

code_complete只针对C语言?

#1

帖子 tianping » 2009-11-21 15:22

http://www.vim.org/scripts/script.php?script_id=1764
看了那个demo,太酷了,于是想试试能不能用在其他语言上,选了perl试一下,将perl下一个lib的文件做了一个ctags,然后找了lib中某个.pm中的函数来调用,但是没有出现demo中的效果。后来设置了 set tags也不行。
这个plugin只能用在C语言上么?有人在其他语言成功使用过没?
还有需要 :set tags么?无论设置与否我在C上都没有成功。
weimujin
帖子: 11
注册时间: 2009-09-28 20:55

Re: code_complete只针对C语言?

#2

帖子 weimujin » 2009-11-21 22:10

不止,C++, java等都可以的
头像
tianping
帖子: 278
注册时间: 2007-08-26 15:57

Re: code_complete只针对C语言?

#3

帖子 tianping » 2009-11-22 18:55

weimujin 写了:不止,C++, java等都可以的
它的tags是用ctags生成的,那么ctags支持的语言应当都能使用code complete

Use the command below to create tags file including signature field.
ctags -R --c-kinds=+p --fields=+S .

Tag generation is supported for the following languages:
Assembler, AWK, ASP, BETA, Bourne/Korn/Zsh Shell, C, C++, COBOL, Eiffel, Fortran, Java, Lisp, Lua, Make, Pascal, Perl, PHP, Python, REXX, Ruby, S-Lang, Scheme, Tcl, Vim, and YACC.
grdxyxy
帖子: 229
注册时间: 2007-07-14 22:39

Re: code_complete只针对C语言?

#4

帖子 grdxyxy » 2009-12-09 17:32

为何我的配置了之后printf没法补全呢?
wgf4242
帖子: 513
注册时间: 2009-11-30 7:46

Re: code_complete只针对C语言?

#5

帖子 wgf4242 » 2009-12-10 6:10

wiki上有个文件.把它生成tag.然后在tag里加上.就能补全了.
回复