On 2019-03-12, fefe17 wrote:
> I regularly use vim for code reviews of huge code bases. tags files of a
> gigabyte or more are not uncommon for me. This does not present a performance
> issue since they are sorted and vim uses binary search, but it does present a
> space issue.
> 
> I would therefore like to be able to configure an external tags lookup 
> program.
> The command line is the word to lookup, and it outputs the matching lines out
> of the tags file. Then I could write a tool that stores the tags data in a
> compressed form and allows fast lookups on it.
> 
> Right now I'm in the (rather ridiculous, I find) situation that the tags file
> for a current project is 270MB but the full text index (!) is 1.8 MB. The tags
> file was already created with ctags -n as to contain the line numbers instead
> of regexes.
> 
> If you do this for me, I will write such a tool and will release it as open
> source.

There is already GNU Global which does this.

    https://www.gnu.org/software/global/

It comes with a plugin for Vim and instructions for using it instead
of cscope as an external symbol database.

By setting 'cscopetag', you can have Vim use GNU Global instead of
its internal tags facility to respond to Ctrl-] and other tags
commands.  See

    :help 'cscopetag'
    :help cscope

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui