anhnmncb wrote:

hi, list
 I find that I can only open pdf file, if the file extension changed to
 PDF, then I can't open it, whether that I have to add some lines like
 NFH_pdf to NFH_PDF in netrwFileHandlers.vim? Any other better solutions?

What o/s are you using? It appears you're using the "x" map/command in the browser (or gx elsewhere).

Usually netrw passes these requests off...

WinXP: !start rundll32 url.dll,FileProtocolHandler
Unix+gnome: gnome-open
Unix+kde: kfmclient

So, I suspect you're not using Windows, as normally Windows is quite case insensitive.

If you're using Unix, are you using gnome or kde? If these fail, only then is netrwFileHandlers#Invoke() attempted, which ends up calling NFH_pdf() (or whatever). If you're using Unix/Linux/etc, then that o/s *is* case sensitive (and SOMETHING.PDF is presumed different from SOMETHING.pdf).

If you want the extension's case to be ignored, I suppose that you do need to write NFH_PDF(). Take
NFH_pdf() and modify.

Regards,
Chip Campbell

Reply via email to