If we run gvim.exe --remote-tab-silent C:\test.txt
we will see some error message, while the file is opened properly. Someone describe it here http://stackoverflow.com/questions/30806729/vim-bug-remote-tab-silent-and-file-in-drive-root I figure out that the problem is https://github.com/vim/vim/blob/master/src/main.c#L4017-L4019 if we execute gvim.exe --remote-tab-silent C:\test.txt after escape, the final script is: cd -|lcd -|elseif getcwd() ==# "C:\"|cd -|endif|endif<CR> Maybe we can change it: ga_concat(&ga, (char_u *)"cd -|lcd -|elseif getcwd() ==# \""); ga_concat(&ga, cdp); int len=strlen(cdp); if(len>3 && cdp[len-1]=='\\' && cdp[len-2]==':'){ ga_concat(&ga, (char_u *)"\\\"|cd -|endif|endif<CR>"); }else{ ga_concat(&ga, (char_u *)"\"|cd -|endif|endif<CR>"); } I have tested with hardcode `ga_concat(&ga, (char_u *)"\\\"|cd -|endif|endif<CR>");`, it works for drive root files. But I have no idea about char_u and multibyte, so the above is just pseudocode. Could anyone help to solve it, thanks? -- -- You received this message from the "vim_dev" 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_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
