Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim path separator & auto-completion

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?

like image 698
sjh Avatar asked Mar 03 '10 15:03

sjh


1 Answers

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

like image 122
Habi Avatar answered Oct 16 '22 07:10

Habi