Tuesday, April 28, 2020

Re: Help: ctags in vim ?

On 2020-04-28, Kunal Chauhan wrote:
> Hi Team,
>
> below is my ctags related question in vim :
>
> Q1: I added new functions to some code repo and run the below command
>      For generating the ctags I used "ctags -R * " at vim but it is not
> working.
>     still I did not compile my code yet.

The asterisk (*) is not necessary. You can execute just

$ ctags -R

> Q2: Also my tags folder is not showing by date update in current source
> directory.

The tags do not go into a folder; they go into a regular file. If
you have a folder named tags, you will need to either rename that
folder or tell ctags and vim to use a different name for the tags
file.

If you are executing "ctags -R *" or "ctags -R" within vim, try
executing it outside of vim, at the shell prompt. That may let you
see any warnings more easily.

> Q3: is ctags require the compilation of code for navigation.

No, ctags does not require that the code be compiled.

However, some programs generate C source files from files written in
other languages, such as YACC. You may need to compile your code
before ctags will find symbols defined in generated files.

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200428174824.GA29220%40phoenix.

No comments:

Post a Comment