On Tue, Apr 2, 2013 at 1:59 AM, Lech Lorens <lech.lor...@gmail.com> wrote:
> On 01-Apr-2013 Bram Moolenaar <b...@moolenaar.net> wrote:
>> How about this alternative: Filter your tags file to change the patterns
>> to include an optional CR before the $: \r\=$
>
> This is something I would prefer to avoid. My current situation is that
> to prepare a tags file I process a few millions lines of code (this is
> after filtering only the relevant parts from about 80 millions LOC) and
> it takes ages to run ctags and cscope. I would rather not cause this
> step to take longer and would prefer a 200 ms search instead of a 100 ms
> one whenever I execute ":tag foo".

I understood Bram's suggestion to mean you could postprocess your tags
file, after it has been generated. This would be fast, no matter the
size of your codebase. For example for Exuberant ctags:

    /^\([^\t]\+\t[^\t]\+\t[^\t]\+\)\(\$\%[/;"].*\)
    :%s//\1\\r\\=\2/

I feel this is a situation where a few lines of shell or Vim script
would be most appropriate.

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui