Friday, August 7, 2015

Re: Copying files with Vim's netrw on Mac OS X is broken

Mark McDonnell wrote:
> Hi, can anyone help me this issue with netrw?
>
> To copy a file in Vim using netrw I have to following these steps:
>
> 1. Select the destination directory (using mt)
> 2. Select the file to be copied (using mf)
> 3. Proceed with copying (using mc)
>
> The commands to use in netrw are:
>
> - mt run while cursor is on top of the directory intended to be the destination
> - mf run while cursor is on top of the file intended to be copied
> - mc run while cursor is on top of the destination ("marked target") directory
mc requires that the target directory and source file have been
selected. It doesn't require that it be done while the cursor is atop
the destination directory.
>
> If I do this on an example project, Vim will display something like:
>
> Copy foo.md to : bar.md
>
> Suggesting it's about to do what I want it to, but upon confirming this I get the following error:
>
> 1 **error** (netrw) tried using g:netrw_localcopycmd<cp>; it doesn't work!
>
This means that system("cp 'your-selected-file'
'your-target-directory'") failed. Check your permissions and path.
What does :echo executable("cp") show?

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: