vimcoder icon indicating copy to clipboard operation
vimcoder copied to clipboard

If there is whitespace in the path to gvim, It doesn't work.(win 7 64bit)

Open ttang235 opened this issue 10 years ago • 1 comments

I use the absolute path: D:\Program Files (x86)\Vim\vim73\gvim.exe, and I got the following error.

09:43:47, ERROR: Failed to save the source given by the server: Cannot run program "D:\Program" (in directory "E:\Topcoder.vimcoder\1708"): CreateProcess error=2, ϵͳÕҲ»µ½ָ¶

The default config doesn't work for me, too. (That's why I configure vimcoder myself) But I can lauch gvim from my cmd. It has been added to PATH.

Thank you!

ttang235 avatar May 30 '14 01:05 ttang235

Since gvim is in your PATH, does it work if you set the vim command setting to "gvim" or "gvim.exe"? But yes, spaces in the vim command setting are treated as command and argument delimiters, and unfortunately there is no mechanism for escaping; adding basic shell-like escaping would be a good idea.

chazmcgarvey avatar Jun 07 '14 04:06 chazmcgarvey