Loading ...
Sorry, an error occurred while loading the content.
 

Re: netrw.vim and tags

Expand Messages
  • Stefan Bittner
    Bram, Charles, - ... The patch works fine for me. I tried it with the above rcp: tag entry and with the following http: test entry vimpage
    Message 1 of 3 , May 7 1:51 AM
      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

      --
      Stefan Bittner | .bf consulting gmbh
      stb@... | http://www.bf-consulting.de
      tel +49-7661-980012 | IT-Consulting, Lösungen, 3D Web Technologien
    Your message has been successfully submitted and would be delivered to recipients shortly.