On Fri, 6 Oct 2006 at 11:48am, Max Dyckhoff wrote: > Hari's new plugin LookupFile is a great use of tags, I use it dozens of times a day! > > http://www.vim.org/scripts/script.php?script_id=1581 > > Max
Thanks Max :) To stimulate more ideas, with the use of taglist() function, you can essentially pull in any information that you put in the fields such as filename, cmd and kind. As long as you don't include that file in the global 'tags' setting and use :tag command, Vim won't even care what you put in there (you could index your bank accounts e.g.). This means, you are basically using the tag file format as a database to store information and taglist() to look it up. This is probably not the most optimal way to store and index a database, but certainly the easiest (and Vim is generally, surprisingly quick in looking up exact matches). For LookupFile, I am using this approach to index filenames to their full paths. There is nothing preventing you from creating a tag file that indexes keywords to their references (instead of definitions), though id-utils and cscope will probably do a much better job in that. -- Thanks, Hari > > > -----Original Message----- > > From: Yakov Lerner [mailto:[EMAIL PROTECTED] > > Sent: Friday, October 06, 2006 11:45 AM > > To: Kim Schulz > > Cc: [email protected] > > Subject: Re: tags - alternative ways to use them > > > > On 10/6/06, Kim Schulz <[EMAIL PROTECTED]> wrote: > > > Most of you probably know about using tags, tagfiles and the taglist > > > plugin, but I am courious if anyone has used the tags functionality in > > > interesting alternative ways? maybe in plugins or simple macros - > > > > Actually, I find the way vimhelp system uses tags to jump > > around by vim topics an interesting alternative way of using tags. > > > > Yakov > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
