Re: copy/mkdir/rmdir under windows

2012-04-11 Fir de Conversatie Charles Campbell
John Beckett wrote: The problem is that (I think) Vim uses the 'shell' option to determine what shell to use to run :! commands, and some users would change that to some quirky shell like 4NT or a host of others. If netrw checks for 'cmd', it could conceivably fail the check but 'move' and 'copy'

RE: copy/mkdir/rmdir under windows

2012-04-10 Fir de Conversatie John Beckett
Charles Campbell wrote: >> I think it would be best to NOT test when under Windows >> because there is no reasonable way to do so. If there were a >> reasonable way for a script to store persistent data, you >> could consider displaying a message the first time one of the >> commands is invoked, le

Re: copy/mkdir/rmdir under windows

2012-04-10 Fir de Conversatie Charles Campbell
John Beckett wrote: Charles Campbell wrote: So, how best to make this work? I was thinking if has("win32") || has("win95") || has("win64") || has("win16") if executable("cmd") let g:netrw_localmovecmd= "cmd move" endif endif You probably saw the other message that t

Re: copy/mkdir/rmdir under windows

2012-04-10 Fir de Conversatie Charles Campbell
John Beckett wrote: Charles Campbell wrote: So, how best to make this work? I was thinking if has("win32") || has("win95") || has("win64") || has("win16") if executable("cmd") let g:netrw_localmovecmd= "cmd move" endif endif No, as Ben said it would have to be "cmd /

RE: copy/mkdir/rmdir under windows

2012-04-09 Fir de Conversatie John Beckett
John Beckett wrote: > letting the user know that netrw will > use 'move', 'mkdir', 'rmdir' as a default I mean 'copy', not 'move'. > I wouldn't bother doing anything about it, but FYI line 3837: >if executable("start") I just thought about this and checked. There is no executable 'start', an

RE: copy/mkdir/rmdir under windows

2012-04-09 Fir de Conversatie John Beckett
Charles Campbell wrote: > So, how best to make this work? I was thinking > > if has("win32") || has("win95") || has("win64") || has("win16") >if executable("cmd") > let g:netrw_localmovecmd= "cmd move" >endif > endif No, as Ben said it would have to be "cmd /c move" and that's just

Re: copy/mkdir/rmdir under windows

2012-04-09 Fir de Conversatie Ben Fritz
On Monday, April 9, 2012 8:59:48 AM UTC-5, Charles Campbell wrote: > Hello, > > I have a request of a windows person out there (I currently don't have > access to a windows box). > > The latest netrw asks users to consider setting up local commands for > copy/mkdir/rmdir, but I've been told tha

copy/mkdir/rmdir under windows

2012-04-09 Fir de Conversatie Charles Campbell
Hello, I have a request of a windows person out there (I currently don't have access to a windows box). The latest netrw asks users to consider setting up local commands for copy/mkdir/rmdir, but I've been told that there really aren't any such commands available under Windows; instead, they