Vim path separator & auto-completion

autocomplete, path, vim

Solution

Perhaps this helps, or is at least a starting point for further digging:

`:help dos-backslash`

shows

When you prefer to use forward slashes, set the 'shellslash' option. Vim will then replace backslashes with forward slashes when expanding file names. This is especially useful when using a Unix-like 'shell'.

Problem

Working on web stuff, in windows, to be hosted on linux. Completing paths with ^X^F automatically inserts "\" as the path separator on windows, which is quite correct, but not what I want, so: Is there a way I can tell it to use "/" as the path separator for auto-completion regardless of OS?

Original source