Fuzzy Logic wrote: > Any thoughts on where I might go to get more ideas? > > On Fri, Jul 24, 2009 at 11:02 AM, Fuzzy Logic<[email protected]> wrote: > >> I was hoping to use netrw.vim to view members in a z/OS PDS, but I >> cannot quite get the format of the URL correct. (Windows XP; Vim 7.2, >> Big version with GUI) >> >> I first tried >> >> :e ftp://usern...@hostname/HLQ.PDS(MEMBER) >> >> As expected, the z/OS ftp daemon prepends my username and looks for >> USERNAME.HLQ.PDS(MEMBER) which is not going to be found. >> >> So, I tried it with single quotes (z/OS convention): >> >> :e ftp://usern...@hostname/'HLQ.PDS(MEMBER)' >> >> No joy. The netrw debug tab contains a lot of information, but it >> looks like the local name has a trailing \' (backslash, single quote), >> which I think is the source of the problem here. I can see the the ftp >> daemon found the member and was happy to send, but the local filename >> was unacceptable because of the backslash and so, could not be opened. >> >> If there is a more specific location to ask about netrw.vim, I'll >> happily take my question there. >> >> FWIW, if I want to open USERNAME.PDS(MEMBER), that works: >> >> :e ftp://usern...@hostname/PDS(MEMBER) >> >> So, it seems limited to just the times when I need the single quotes >> to prevent the prepending of my username. >> >> I'm fairly certain that this is being done by the fnameescape() function (see :help fnameescape()). I suppose you could write something (using a script, tr, whatever) to remove those backslashes and run the result through ftp; try setting g:netrw_ftp_cmd to use it.
Regards, Chip Campbell --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
