From f5eabaa9407ae3d1ccf6592337453c423eff3d9a Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 10 Oct 2023 08:22:32 +0800 Subject: fix(path): restore space separation in 'path' (#25571) Removing this behavior causes more inconsistencies and bugs. --- runtime/lua/vim/_meta/options.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index e90a85ae0a..4f6408b136 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -4621,6 +4621,12 @@ vim.go.pm = vim.go.patchmode --- ``` --- :set path=.,/usr/local/include,/usr/include --- ``` +--- - Spaces can also be used to separate directory names. To have a +--- space in a directory name, precede it with an extra backslash, and +--- escape the space: +--- ``` +--- :set path=.,/dir/with\\\ space +--- ``` --- - To include a comma in a directory name precede it with an extra --- backslash: --- ``` -- cgit