v145a of netrw (available from my website as
http://www.drchip.org/astronaut/vim/index.html#NETRW) has the following
variables:
g:netrw_localmovecmd
g:netrw_localcopycmd
g:netrw_localrmdir
g:netrw_localmkdir
(v144 and earlier style names were in the format g:netwr_local_movecmd,
etc)
You might want to consider setting these with whatever works for you.
Regards,
Chip Campbell
I actually ended up just hacking the autoload/netrw.vim file and
surrounding each function call with:
set noshellslash
*function call*
set shellslash
While its not pretty, it works like a charm. Also, I got rid of the
"executable()" condition when attempting to call the MS-DOS commands.
Thanks for your suggestion though. I may try this upgrade down the line.
-Bart
> --
> 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
Hacking it means that subsequent upgrades/changes to netrw will be that
more difficult for you, as you probably know.
I've changed the executable test to be executable("cmd"), since
Windoze doesn't support copy/move/mkdir/rmdir as separate commands.
Regards,
Chip Campbell
Hi,
I'm facing exactly the same problem that Bart mentioned with netrw
v146a as well. I'm using gVim 7.3 on Windows XP SP3.
I'm not sure what other MS-DOS commands to use besides "MOVE" and
"COPY" to set the variables "g:netrw_localmovecmd" and
"g:netrw_localcopycmd".
Any ideas?
Antonis Loumiotis
I'll be trying to get mingw and compile vim for native windows myself
soon. I had a native vim under Windows, but that was before the latest
updates to cygwin meant that the cygwin compiler no longer handles
native windows executable production.
Regards,
Chip Campbell
Hello,
It seems that the function mathmenu#StartMathMenu() contains small bug in the
definition of maps: <Plug>MathMenuSubscript, <Plug>MathMenuSuperscript and
<Plug>MathMenuMathify. The following I found in autoload/mathmenu.vim:
vno <buffer> <silent> <Plug>MathMenuSubscript <esc>gv:B call mathmenu#Subscript()<cr>
vno <buffer> <silent> <Plug>MathMenuSuperscript <esc>gv:B call mathmenu#Superscript()<cr>
vno <buffer> <silent> <Plug>MathMenuMathify <esc>gv:B call mathmenu#Mathify()<cr>
I guess in all three the B should be just <C-U>, or just:
vno <buffer> <silent> <Plug>MathMenuSubscript :<c-u>call mathmenu#Subscript()<cr>
vno <buffer> <silent> <Plug>MathMenuSuperscript :<c-u>call mathmenu#Superscript()<cr>
vno <buffer> <silent> <Plug>MathMenuMathify :<c-u>call mathmenu#Mathify()<cr>
And this works here just fine.
Best regards,
Marcin Szamotulski
It defines a "B" command, supporting block-visual selection.
Thank you for letting me know (I've had mathmenu out for over a year
now, and yours is the first report about this),
Chip Campbell
I'd prefer if the maps where defined using the function vis#VisBlockCmd()
instead of :B command. I could than safely remove vis.vim public interface in
my vimrc file.
Best,
Marcin
Hi,
Updating to v146c of netrw did not solve the problem.
Do I have to modify the function mathmenu#StartMathMenu()?
Should I install the vis.vim plugin?
I'm a new user of gVim and not an expert in programming.
Best,
Antonis
* you don't need the math plugin for netrw
* the latest math vimball now includes vis.vim (and cecutil);
documentation for them is not included, you'll need to directly get the
vis vimball for that (documentation for the math plugin itself *is*
included, of course)
Regards,
Chip Campbell
Thanks for your help and for the clarifications Chip.
I tried v146d but still the copy and move commands do not work.
I would like to report though that the following message:
**error** (netrw) command<move> is not executable!
does not appear anymore when using (mm) to move. But the file(s) are
not moved.
Best regards,
Antonis
Thanks again for your help.
Chip, I took your wise advice and updated to version 146d. I was able
to use the local copy command (woohoo!), but now, when I attempt "mt
mf mm" on a single file, I get the following message (after
uncommenting the Decho calls):
Error detected while processing function <SNR>39_NetrwMarkFileMove:
line 23:
E121: Undefined variable: s:netrwmarkfilelist_18
E15: Invalid expression: s:netrwmarkfilelist_{bufnr("%")}
When I leave the file as is leaving the Decho call lines commented
out, I experience the same issue as Antonis.
Thanks,
Bart