Hi,

I'm trying to make my vim highlight all defined type from a C++ project
tag file.

I found this function:


function! s:highlight() let list = taglist('.*')
    for item in list
        let kind = item.kind
        if kind == 'f' || kind == 'c'
            let name = item.name
            exec 'syntax keyword Identifier '.name
        endif
    endfor
endfunction


It does exactly what I want but is horribly slow :-(

I tried :echo taglist('.*') which is what takes most time (the project
tree is quite big). But doing :echo taglist('TYPE.*') returns almost
immediately. I didn't manage to make the function (which I only partly
understand) work with it.

Anyone used to doing this kind of stuff ?

Thanks in advance :-)


-- 
Tinou

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to