Bram Moolenaar wrote:
>
>
>
> sunhuanzxc wrote:
>
>> The file's Chinese character directory can't be identified correctly,so
>> the
>> browser or explorer can't locate it. It works if the file's path is all
>> English character.Could we solve it??
>>
>> My definition:
>>
>> map <leader>f :update<CR>:silent !start X:\browser.exe file://%:p<CR>
>> map <leader>i :update<CR>: !start X:\browser.exe <cWORD><CR>
>>
>> nnoremap <silent> <C-F5> :if expand("%:p:h") != ""<CR>:!start
>> explorer.exe %:p:h<CR>:endif<CR><CR>
>
> Arguments for command line commands need to be escaped. shellescape()
> usually works for this.
>
> --
> From "know your smileys":
> :----} You lie like Pinocchio
>
> /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net
> \\\
> /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/
> \\\
> \\\ download, build and distribute -- http://www.A-A-P.org
> ///
> \\\ help me help AIDS victims -- http://ICCF-Holland.org
> ///
>
> >
>
>
I think shellescape() will helps , I tried many times ,but....-_||,could you
show me the completed codes?
--
View this message in context:
http://www.nabble.com/Launching-browser-problem%28gvim-win32%29-tp24473019p24477958.html
Sent from the Vim - General mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---