分页: 1 / 1

code_complete只针对C语言?

发表于 : 2009-11-21 15:22
tianping
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上都没有成功。

Re: code_complete只针对C语言?

发表于 : 2009-11-21 22:10
weimujin
不止,C++, java等都可以的

Re: code_complete只针对C语言?

发表于 : 2009-11-22 18:55
tianping
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.

Re: code_complete只针对C语言?

发表于 : 2009-12-09 17:32
grdxyxy
为何我的配置了之后printf没法补全呢?

Re: code_complete只针对C语言?

发表于 : 2009-12-10 6:10
wgf4242
wiki上有个文件.把它生成tag.然后在tag里加上.就能补全了.