Vim path separator and auto-complete

Work with web files, in windows, for placement on Linux.

Completing paths with ^ X ^ F automatically inserts "\" as a path separator in windows, which is perfectly correct, but not what I want, like this:

Can I say that using "/" as a path separator for autocomplete, regardless of the OS?

+4
source share
1 answer

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

:help dos-backslash

shows

If you prefer to use a slash, set the shellslash parameter. Vim will then replace the backslash with a slash when expanding the file names. This is especially useful when using a Unix-like "shell".

+8
source

Source: https://habr.com/ru/post/1303007/


All Articles