10

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?

1 Answer 1

15

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'.

Sign up to request clarification or add additional context in comments.

2 Comments

Winner! I am dropping its shortcut "set ssl" in certain ftplugin files now
:set ssl -> slashes will be forward slashes / (ssl is short for shellslash) :set nossl -> slashes will be backward slashes `\`

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.