]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): make 'shiftwidth' setting more precise
authorDamien Lejay <damien@lejay.be>
Sun, 1 Jun 2025 17:10:36 +0000 (19:10 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 1 Jun 2025 17:10:36 +0000 (19:10 +0200)
closes: #17414

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/options.txt

index d69c204f316584d251a3cb279c3995c4a9cc9486..cc0a5e652753e8f024730924729f3cca80dfb4d7 100644 (file)
@@ -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",