changeset 36311:34831cd8c9f8 draft

runtime(doc): add preview flag to statusline example Commit: https://github.com/vim/vim/commit/7b5e52d16fb457c90cc44340a6190712aab7e03b Author: saher <msaher.shair@gmail.com> Date: Mon Oct 14 19:52:50 2024 +0200 runtime(doc): add preview flag to statusline example 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>
author Christian Brabandt <cb@256bit.org>
date Mon, 14 Oct 2024 20:00:13 +0200
parents e20f5a207227
children c2b4ce26ca6d
files runtime/doc/options.txt
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -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 shor
 
 	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. >