Jack Donohue wrote:
Jack Donohue wrote:
I use the x (execute) command a lot
" Netrw Directory Listing
(netrw v132)
" Sorted by time
" Quick Help: <F1>:help -:go up dir D:delete R:rename
s:sort-by x:exec
"
============================================================================
Works fine in vim70, but I recently changed to vim 7.2 and I
sometime get this:
Press <cr> to continue
instead of opening the file with the file association. I'm running
Windows XP SP 3
So, I found that this line:
exe 'silent !start rundll32 url.dll,FileProtocolHandler
'.shellescape(fname,1)
is not working for some reason.
I added:
call input("start rundll32 url.dll,FileProtocolHandler
".shellescape(fname,1));
and it prints out for a sample file:
start rundll32 url.dll,FileProtocolHandler
'G:/CRW/Membership/missing.csv'
which looks fine to me.
I tried the former:
exe 'silent !start rundll32 url.dll,FileProtocolHandler
"'.escape(fname, '%#').'"'
and that works fine. The only difference I can see it the text for
the two commands is that the old escape ends up with a double quoted
filename, while shellescape generates single quotes.
Hmm -- maybe changing your shellquote option would help.
Regards,
Chip Campbell
--
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