runtime(doc): make 'shiftwidth' setting more precise
Commit:
https://github.com/vim/vim/commit/95ea0b0f8de4ab6e13bf090f33b8cbfe5b6e5c9f
Author: Damien Lejay <[email protected]>
Date: Sun Jun 1 19:10:36 2025 +0200
runtime(doc): make 'shiftwidth' setting more precise
closes: https://github.com/vim/vim/issues/17414
Signed-off-by: Damien Lejay <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index d69c204f3..cc0a5e652 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1,4 +1,4 @@
-*options.txt* For Vim version 9.1. Last change: 2025 May 31
+*options.txt* For Vim version 9.1. Last change: 2025 Jun 01
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -7499,10 +7499,10 @@ A jump table for the options with a short description
can be found at |Q_op|.
*'shiftwidth'* *'sw'*
'shiftwidth' 'sw' number (default 8)
local to buffer
- Number of spaces to use for each step of (auto)indent. Used for
- |'cindent'|, |>>|, |<<|, etc.
- When zero the 'tabstop' value will be used. Use the |shiftwidth()|
- function to get the effective shiftwidth value.
+ Number of columns that make up one level of (auto)indentation. Used
+ by |'cindent'|, |<<|, |>>|, etc.
+ If set to 0, Vim uses the current 'tabstop' value. Use |shiftwidth()|
+ to obtain the effective value in scripts.
*'shortmess'* *'shm'*
'shortmess' 'shm' string (Vim default "filnxtToOS", Vi default: "S",
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uLmH4-00BUEH-5F%40256bit.org.