mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
vim-patch:7b5e52d: 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: vim/vim#15874
7b5e52d16f
Co-authored-by: saher <msaher.shair@gmail.com>
This commit is contained in:
parent
4846bf05dc
commit
9701cbf036
@ -6275,7 +6275,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
Emulate standard status line with 'ruler' set >vim
|
Emulate standard status line with 'ruler' set >vim
|
||||||
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") >vim
|
< Similar, but add ASCII value of char under the cursor (like "ga") >vim
|
||||||
set statusline=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
|
set statusline=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
|
||||||
< Display byte count and byte value, modified flag in red. >vim
|
< Display byte count and byte value, modified flag in red. >vim
|
||||||
|
2
runtime/lua/vim/_meta/options.lua
generated
2
runtime/lua/vim/_meta/options.lua
generated
@ -6695,7 +6695,7 @@ vim.wo.stc = vim.wo.statuscolumn
|
|||||||
--- Emulate standard status line with 'ruler' set
|
--- Emulate standard status line with 'ruler' set
|
||||||
---
|
---
|
||||||
--- ```vim
|
--- ```vim
|
||||||
--- 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")
|
--- Similar, but add ASCII value of char under the cursor (like "ga")
|
||||||
---
|
---
|
||||||
|
@ -8356,7 +8356,7 @@ return {
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
Emulate standard status line with 'ruler' set >vim
|
Emulate standard status line with 'ruler' set >vim
|
||||||
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") >vim
|
< Similar, but add ASCII value of char under the cursor (like "ga") >vim
|
||||||
set statusline=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
|
set statusline=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
|
||||||
< Display byte count and byte value, modified flag in red. >vim
|
< Display byte count and byte value, modified flag in red. >vim
|
||||||
|
Loading…
Reference in New Issue
Block a user