To copy a file to Vim using netrw, follow these steps:
- Select destination directory (using
mt ) - Select the file to copy (using
mf ) - Continue copying (using
mc )
Commands for use in netrw:
mt run while the cursor is at the top of the destination directory.
mf run while the cursor is on top of the file to be copied
mc run while the cursor is over the destination folder ("marked target")
If I do this in a project example, Vim will display something like:
Copy foo.md to : bar.md
Offering to do this to do what I want, but confirming this, I get the following error:
1 **error** (netrw) tried using g:netrw_localcopycmd<cp>; it doesn't work!
I read on the internet that netrw is considered pretty wrong, and there seems to be no much documentation or notes on how to solve this problem.
I should be clear and state that I am not interested in using NERDTree.
source share