Hi Chris, 

:cd [the directory of oldfilename]
:call system("cp 'oldfilename' 'newfilename'")

works as expected.

After further testing, it seems I have to execute netrw-c (make browsing 
directory the current directory) before the sequence -

1. move cursor to oldfile, 
2. mt 
3. mf 
4. mc 
5. enter newfilename.

If I execute :cd (change to home directory) and repeat the above sequence, then 
I get -

**error** (netrw) tried using g:netrw_localcopycmd<cp>; it doesn't work!

Is this part of netrw design?


> What does
> 
> :call system("cp 'oldfilename' 'newfilename'")
> 
> do?  (where oldfilename is an actual filename).  Also see  :help
> netrw-debug.
> 
> Regards
> Chip Campbell

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to