To copy a file in Vim using netrw has the following steps:
mt
)mf
)mc
)The commands to use in netrw are:
mt
run while cursor is on top of the directory intended to be the destinationmf
run while cursor is on top of the file intended to be copiedmc
run while cursor is on top of the destination ("marked target") 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!
I've read online that netrw is considered pretty buggy and so there doesn't appear to be much documentation or notes on how to resolve this issue.
I should be clear and state that I'm not interested in using NERDTree.
read more at :help netrw-c
to understand more about current directory and browsing directory mismatch.
you either want to press c
before the process or just let g:netrw_keepdir=0
in your .vimrc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With