Loading ...
Sorry, an error occurred while loading the content.
 

Re: how to make ctags work in vim

Expand Messages
  • 777
    1. Build Tags For c ctags -R --sort=foldcase --c++-kinds=+p --fields=+iaS --extra=+q . 2.Add tags to vim set tags+= 3.Sometime Gtags is better. ... -- You
    Message 1 of 6 , Aug 5, 2010
      1. Build Tags For c
      ctags -R --sort=foldcase --c++-kinds=+p --fields=+iaS --extra=+q .
      2.Add tags to vim
      set tags+=
      3.Sometime Gtags is better.


      2010/8/6 EdwardXu <edwardxuhui19847@...>:
      > Hi,
      > 1. Add
      > set tags=c:\projects\test\tags
      > to _vimrc file
      > 2.
      > I'm using gvim on Windos XP too, when i faced this problem, i figured out
      > the solution using batch file to generate ctags file ,cscope database file
      > and lookup tag file automaticly.
      > I added
      > set tags=tags
      > cs add cscope.out
      > into _vimrc file so if i lunch gvim at the project root path, these files
      > are loaded.
      >
      > so when i generate these file using batch file, i generate another .bat file
      > called project.bat with the content below:
      > start gvim
      > exit
      > then what i need is just to click project.bat in project root directory,
      > everything will be done automaticly.
      >
      > I'm a beginner of VIM,  looking forward to better solution of you guys.
      >
      > my batch file is list below:
      >
      > @echo off
      > set path=%path%;C:\Program Files\Vim\vim72\utility;
      > time /t
      > echo !_TAG_FILE_SORTED    2    /0=unsorted, 1=sorted, 2=foldcase/ >filename
      > gfind . -not -regex ".*\.\(pdf\|elf\|doc\|o\|x12\)" -type f -printf
      > "%%f\t%%p\t1\n" >>filename
      > gsort filename >filenametag
      > del filename
      > ctags -R
      > cscope -Rb
      > time /t
      > echo start gvim >project.bat
      > echo exit >>project.bat
      > @echo on
      >
      >
      >
      > 2010/8/5 Jeri Raye <jeri.raye@...>
      >>
      >> Hi,
      >>
      >> I managed to creat a tag file.
      >> If that tag file is on location c:\projects\test how do I tell vim
      >> then that it should look there for tag information?
      >>
      >> Rgds,
      >> Jeri
      >>
      >> --
      >> 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
      >
      >
      >
      >
      > --
      > Thanks & Best Regards
      > Edward
      >
      > --
      > 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 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
    Your message has been successfully submitted and would be delivered to recipients shortly.