Friday, May 16, 2014

Re: Can't copy or move files with netrw

Federico Panico wrote:
> Hi, DrChip. Thanks for asking.
>
>> :echo executable("mv")
> That returns a 1.
>
>> * check your path
> 'which mv' return /usr/bin/mv
>
>> * check your shell
> Currently using zsh. Tried changing it to bash (chsh, logout, login) and still I get the same error.
>
>> * do you have permission to execute?
> I have write permissions on the files that I want to move and /usr/bin/mv is owned by root but everybody has permission to execute.
>
Does :!mv file folder work?

The full test used is:

if !executable(g:netrw_localmovecmd) && g:netrw_localmovecmd !~
'^'.expand("$COMSPEC").'\s'
call
netrw#ErrorMsg(s:ERROR,"g:netrw_localmovecmd<".g:netrw_localmovecmd.">
not executable on your system, aborting",90)
return
endif

Please try

vim .
:echo !executable(g:netrw_localmovecmd) && g:netrw_localmovecmd !~
'^'.expand("$COMSPEC").'\s'

That's the only place in netrw that issues the message about localmvcmd
not being executable.

Regards,
Chip Campbell

P.S. netrw is up to v153a
(http://www.drchip.org/astronaut/vim/index.html#NETRW). You could try
:help netrw-debug but, as I said, that code snippet above is the only
place that message you're getting is given.

--
--
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: