feat!: remove recursive dir support for setlocal (#2415)

* feat!: remove recursive dir support for `setlocal`

* Update version in man page

* Update `CHANGELOG.md`
This commit is contained in:
Joe Lim authored and GitHub committed 2026-03-05 18:52:13 +11:00
1 parent 941866b62f
commit 374ae19cb2
7 files changed
+17 -88

No files matched your search

-3
View File
@@ -1481,7 +1481,6 @@ Command `set` is used to set an option which can be a boolean, integer, or strin
Command `setlocal` is used to set a local option for a directory which can be a boolean or string.
Currently supported local options are `dircounts`, `dirfirst`, `dironly`, `hidden`, `info`, `reverse` and `sortby`.
Adding a trailing path separator (i.e. `/` for Unix and `\` for Windows) sets the option for the given directory along with its subdirectories:
setlocal /foo/bar hidden # boolean enable
setlocal /foo/bar hidden true # boolean enable
@@ -1491,8 +1490,6 @@ Adding a trailing path separator (i.e. `/` for Unix and `\` for Windows) sets th
setlocal /foo/bar sortby time # string value without quotes
setlocal /foo/bar sortby 'time' # string value with single quotes (whitespace)
setlocal /foo/bar sortby "time" # string value with double quotes (backslash escapes)
setlocal /foo/bar hidden # for only '/foo/bar' directory
setlocal /foo/bar/ hidden # for '/foo/bar' and its subdirectories (e.g. '/foo/bar/baz')
Command `map` is used to bind a key in Normal and Visual mode to a command which can be a built-in command, custom command, or shell command: