Re: netrw.vim and tags
- Bram, Charles, -
On Mon, May 06, 2002 at 08:39:11PM +0200, Bram Moolenaar wrote:
> Charles Campbell wrote:
> > Stefan Bittner pointed out that making tags files with
> > entries such as
> > > proc rcp://mexx/~/.procmailrc /my_notify/
> > doesn't invoke netrw to process the rcp:... url while trying to use
> > :ta proc
> > The only autocmd event that even mentions tags is CursorHold, which I
> > don't think applies. Is this a bug with BufRead?
> The problem is that the tags code first checks if the file exists. If
> it doesn't, it will not try to open the file.
> Always trying to open the file will cause side effects. I think this is
> not a good idea.
> Hard-coding a check for things like http:// or rcp:// is a bad solution.
> A good solution would be to check if there are matching BufReadCmd
> autocommands. But the code for finding the autocommand is currently
> mixed with the code to execute the commands... Ah, it's not too
> difficult to separate it. Try this patch:
> [ patch follows ]
The patch works fine for me. I tried it with the above rcp: tag entry
and with the following http: test entry
vimpage http://www.vim.org/index.html /Uganda/
Thanks a lot!
Stefan Bittner | .bf consulting gmbh
stb@... | http://www.bf-consulting.de
tel +49-7661-980012 | IT-Consulting, Lösungen, 3D Web Technologien