On 2010-12-13, yang wrote:
> i use ctags ,and in the source code dir vim73/src ,i run
> ctags -R --c-kinds=+px --c++-kinds=+px --fields=+ialS --extra=+qf to crreate
> the tags file named tags,
> then i open the file buffer.c use vim, i can't for the var curbuf-> ,
> i get a message "-- Omni completion (^O^N^P) Pattern not found " ,i
> think
> ctags didn't create a tags for
> the vim source code corrently.
That the message refers to omni completion and not to tags would
suggest that you used the wrong command to try to find the tag.
I didn't check the validity of your ctags command, but I executed it
in my vim directory--the one above src, but I don't think it
matters--and then executed "vim" in that same directory. Executing
:tag curbuf
caused the cursor to jump to the declaration of curbuf at line 579
of src/globals.h. Moving the cursor to a symbol and typing
Ctrl-]
should also take you to the definition of that symbol.
> so, how can i create a tags for the vim source code correctly? Many thanks!
I think you've created the tags file correctly--you just haven't
issued the correct command to jump to the symbol definition.
Regards,
Gary
--
You received this message from the "vim_dev" 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