]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): add preview flag to statusline example
authorsaher <msaher.shair@gmail.com>
Mon, 14 Oct 2024 17:52:50 +0000 (19:52 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 14 Oct 2024 17:52:50 +0000 (19:52 +0200)
Problem:  The standard statusline example is missing the preview flag
          "%w"
Solution: Add the preview flag "%w"

closes: #15874

Signed-off-by: saher <msaher.shair@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/options.txt

index f0844e21b0255ee9dd3222c3785ca63a5551ff69..48ca25adf746cb77a77cbe0c956824d8d1e9b65f 100644 (file)
@@ -1,4 +1,4 @@
-*options.txt*  For Vim version 9.1.  Last change: 2024 Oct 06
+*options.txt*  For Vim version 9.1.  Last change: 2024 Oct 14
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -7969,7 +7969,7 @@ A jump table for the options with a short description can be found at |Q_op|.
 
        Examples:
        Emulate standard status line with 'ruler' set >
-         :set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
+         :set statusline=%<%f\ %h%w%m%r%=%-14.(%l,%c%V%)\ %P
 <      Similar, but add ASCII value of char under the cursor (like "ga") >
          :set statusline=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
 <      Display byte count and byte value, modified flag in red. >