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

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to