exuberant-ctags

How can I make vim tag jumps as smart as OmniCppComplete?

岁酱吖の 提交于 2019-12-04 12:59:45
问题 I generate my tags (Exuberant Ctags 5.9~svn20110310) like this: ctags --c++-kinds=+p --fields=+iaS --extra=+q -L ctags.files I have roughly this class structure: class RenderObject { InterpolatedVector offset; }; class Quad : public RenderObject { }; class KeyframeWidget : public Quad { void shiftRight() { if (!offset.isInterpolating()) offset.interpolateTo(Vector(offset.x+80, 0), 0.1, 0, 0, 0); } }; (Code is from Aquaria's open source release.) If I tag jump on offset ( Ctrl - ] ), then I

Exuberant Ctags with R

懵懂的女人 提交于 2019-12-03 11:07:03
问题 Is there any documented use of ctags with R? Would this be useful? Would it be difficult to implement? Specifically, I've just started using Vim. It would be cool to be able to write an R function in one file, use the function in another file (e.g., an Rnw file, test file, or some other script), and be able to use Ctrl+] to navigate to the function source. Update: I've since stumbled on the rtags function, although it suggests that it is emacs specific. 回答1: This is a modification of Henrico

How to add comments to an Exuberant Ctags config file?

折月煮酒 提交于 2019-12-03 08:16:45
问题 What character can I use to put comments in an Exuberant Ctags .ctags file? I would like to add comments with explanations, and perhaps to disable some regexps. But I can't find any comment character which ctags-exuberant accepts! I keep getting the warning: ctags: Warning: Ignoring non-option in /home/joey/.ctags which is better than an error, but still a little annoying. I have tried # // /* ... */ and ; as comments, but ctags tries to parse them all! Here is an example file with some

How can I make vim tag jumps as smart as OmniCppComplete?

蓝咒 提交于 2019-12-03 08:05:52
I generate my tags (Exuberant Ctags 5.9~svn20110310) like this: ctags --c++-kinds=+p --fields=+iaS --extra=+q -L ctags.files I have roughly this class structure: class RenderObject { InterpolatedVector offset; }; class Quad : public RenderObject { }; class KeyframeWidget : public Quad { void shiftRight() { if (!offset.isInterpolating()) offset.interpolateTo(Vector(offset.x+80, 0), 0.1, 0, 0, 0); } }; (Code is from Aquaria's open source release .) If I tag jump on offset ( Ctrl - ] ), then I get a list every offset in my codebase. After I type offset. to the end of shiftRight() ,

ctags multi-line C function prototypes

别来无恙 提交于 2019-12-03 06:14:11
Is there a way for ctags to handle multiline function prototypes in C? I've searched around and the --fields=+S is supposed to do multiline prototypes, but I can't get it to work: ctags -x --c-kinds=pf --fields=+S file file: int foo(int x, int y ); ctags only returns: foo(int (Note that the return type is also missing) Ultimately I would like to get an output similar to int foo(int x, int y); or int foo(int x, int y is --fields=+S not the correct way? Are there part of the ctags fields that I am missing? Any pointers in general? If there is not a way to do it in ctags, any recommended programs

Exuberant Ctags with R

北慕城南 提交于 2019-12-03 02:37:55
Is there any documented use of ctags with R? Would this be useful? Would it be difficult to implement? Specifically, I've just started using Vim. It would be cool to be able to write an R function in one file, use the function in another file (e.g., an Rnw file, test file, or some other script), and be able to use Ctrl+] to navigate to the function source. Update: I've since stumbled on the rtags function, although it suggests that it is emacs specific. This is a modification of Henrico's answer, and may be implemented by copying and pasting the following code into one's ~/.ctags files.

How to navigate multiple ctags matches in Vim?

旧街凉风 提交于 2019-12-03 02:09:59
问题 I'm using Ctrl - ] in Vim to navigate using Ctags. How do I navigate to alternate file if there are multiple matches? Ex. something.publish in a codebase containing multiple occurrences of publish : class Foo def publish end end class Bar def publish end end 回答1: :tn[ext] goes to the next tag, :tp[revious] goes to the previous one. :ts[elect] gives you a list to choose from. :help tag-matchlist for more fun and exciting things to try! 回答2: Use g] instead of C-] to get the list of all matches.

Exuberant Ctags on Mac

泄露秘密 提交于 2019-12-03 02:02:50
I'm currently using vim for my PHP development. A few weeks ago I bought myself a mac, and wanted to re-generate my tags for a new Zend Framework version. I used the following script in the past (linux machine) to generate the tags: #!/bin/bash cd ~/www/ZF/ ctags-exuberant -f ~/.vim/tags/zend \ -h ".php" -R \ --exclude="\.svn" \ --totals=yes \ --tag-relative=yes \ --PHP-kinds=+cf \ --regex-PHP='/abstract class ([^ ]*)/\1/c/' \ --regex-PHP='/interface ([^ ]*)/\1/c/' \ --regex-PHP='/(public |static |abstract |protected |private )+function ([^ (]*)/\2/f/' You can see I used the "ctags-exuberant"

How to add comments to an Exuberant Ctags config file?

删除回忆录丶 提交于 2019-12-03 01:10:13
What character can I use to put comments in an Exuberant Ctags .ctags file? I would like to add comments with explanations, and perhaps to disable some regexps. But I can't find any comment character which ctags-exuberant accepts! I keep getting the warning: ctags: Warning: Ignoring non-option in /home/joey/.ctags which is better than an error, but still a little annoying. I have tried # // /* ... */ and ; as comments, but ctags tries to parse them all! Here is an example file with some comments which ctags will complain about: # Add some more rules for Javascript --langmap=javascript:+.jpp -

ctags error: “ctags: Unknown option: -p”

爱⌒轻易说出口 提交于 2019-12-01 09:36:02
问题 I've searched for this (exact) error, but I can't find any mention of it on the web. Basically, I'm trying to install ctags (I've never used it before) on OSX Snow Leopard. Here's what I've done: I downloaded the latest source package (version 5.8) from here: http://ctags.sourceforge.net/ Per the INSTALL instructions, I've run configure/make/make install. This installs a ctags binary to /usr/local/bin/. If I cd into /usr/local/bin/ and run ./ctags (with no args), I get this: ctags: Unknown