i had checked the tags file,and found this line curbuf /home/yang/soft/vim73/src/globals.h /^EXTERN buf_T *curbuf INIT(= NULL); \/* currently active buffer *\/$/;" v language:C++
Then i add -I EXTERN=extern to ctags options ,and run ctags -R --c-kinds=+px --c++-kinds=+px --fields=+ialS --extra=+qf -I EXTERN=extern and that line change to curbuf /home/yang/soft/vim73/src/globals.h /^EXTERN buf_T *curbuf INIT(= NULL); \/* currently active buffer *\/$/;" x language:C++ so ,i guess the tags created by ctags was correctly, but the omnicomplete plugin didn't handle extern (x type) properly, is omnicomplete plugin's bug. Thanks all! 2010/12/14 James Vega <[email protected]> > On Mon, Dec 13, 2010 at 09:12:18PM -0800, Gary Johnson wrote: > > 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. > > He's not trying to find the tag. He's trying to use omni-completion to > complete "curbuf->". That being said, I built the tags file the stated > way and was able to perform said completion. > > -- > James > GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]> > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEAREDAAYFAk0HBX0ACgkQDb3UpmEybUAZVACeOTJ8IBvaa0k0S4wIY4bAX96e > z7QAoId1MyJEjvwPMmrRbYz/FsbnlpYV > =eCy0 > -----END PGP SIGNATURE----- > > -- 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
