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

Little bug in plugin/netrw.vim

Expand Messages
  • Lubomir Host
    Hello, I will report one little bug in plugin netrw.vim version 2.15. If I will edit file like ^http://www.vim.org$ , regular expression httpurm =
    Message 1 of 1 , Feb 1, 2002
    • 0 Attachment
      Hello,

      I will report one little bug in plugin netrw.vim version 2.15.

      If I will edit file like '^http://www.vim.org$', regular expression "httpurm =
      'http://\([^/]\{-}\)/\(.*\)$'" doesn't match for URL and due this 'rcp' is used
      to download file. I will use 'wget' for downloading this file (b:netrw_method
      = 5).

      Patch follows:

      $ diff netrw.vim.orig netrw.vim.new
      481c481,483
      < let httpurm= 'http://\([^/]\{-}\)/\(.*\)$'
      ---
      > " modified by Lubomir Host 'rajo' <host8@...> [2002/02/02/]
      > "let httpurm= 'http://\([^/]\{-}\)/\(.*\)$'
      > let httpurm= 'http://\([^/]\{-}\)\(/.*\)\{0,}$'


      Previous regular expression match these files:
      http://www.vim.org/
      http://www.vim.org/index.html
      http://www.vim.org/path/to/files/example.html

      My regular expression match these files:
      http://www.vim.org
      http://www.vim.org/
      http://www.vim.org/index.html
      http://www.vim.org/path/to/files/example.html

      Works my patch for you?

      --
      Lubomir Host
      Platon software development group
    Your message has been successfully submitted and would be delivered to recipients shortly.