Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You almost got it right. You need to escape each surrounding ". Instead of escaping a space, windows requires you to wrap the string in quotes. But vim interprets the quote as a comment. So you need to escape the double quote. You also need a backslash to escape the space.</p> <p>See an example in <code>:h 'shell'</code> (note the single quotes around shell is necessary to get help on the shell option. Otherwise you get help on the shell ex command.)</p> <pre><code>:set shell=\"C:\Program\ Files\Git\bin\sh.exe\" </code></pre> <p>You can check the value by typing:</p> <pre><code>:echo &amp;shell </code></pre> <p>As a side note though - I recommend not using bash/sh inside the win32 gvim. Many plugins test for <code>has("win32")</code> and construct shell commands for <code>cmd.exe</code> rather than the &amp;shell value. As a result, these plugins will fail if the shell is not <code>cmd.exe</code>. Ideally these plugins would test the <code>&amp;shell</code> value rather than using <code>has("win32")</code>. So even though I call win32 gvim from inside cygwin, I always set the shell back to <code>cmd.exe</code> or better <code>$COMSPEC</code> using this snippet in my vimrc.</p> <pre><code>if has("win32") || has("win64") || has("win16") "I do other stuff in here... "Then only inside this if block for windows, I test the shell value "On windows, if called from cygwin or msys, the shell needs to be changed to cmd.exe if &amp;shell=~#'bash$' set shell=$COMSPEC " sets shell to correct path for cmd.exe endif endif </code></pre> <p>Edit: As @LucHermitte mentions in the comment, plugins that don't work on win32 gvim when shell is set to bash or sh should be fixed. I agree... but in my experience this was not always feasible. So I always set the shell back to $COMSPEC (cmd.exe usually). If you don't have any issues with your plugins, then that's great and ignore my side note.)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload