I appreciate the netrw author taking an interest in my newbie problem - but I am still stumped. I am running gvim 7.4.884 on Arch Linux. I checked some global variables -
:ec g:loaded_netrwPlugin
v153
:ec g:netrw_localcopycmd
cp
:ec executable(g:netrw_localcopycmd)
1
then I launch netrw on a directory which I have read/write permissions
mt
mf
mc
entered new file name
**error** (netrw) tried using g:netrw_localcopycmd<cp>; it doesn't work!
any clues?
: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?