mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:1b08d2cd0789 (#25993)
runtime(doc): clarify when formatoptions applies
closes: vim/vim#13503
1b08d2cd07
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
84688ec372
commit
2494009885
@ -2774,8 +2774,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
'formatoptions' 'fo' string (default "tcqj")
|
'formatoptions' 'fo' string (default "tcqj")
|
||||||
local to buffer
|
local to buffer
|
||||||
This is a sequence of letters which describes how automatic
|
This is a sequence of letters which describes how automatic
|
||||||
formatting is to be done. See |fo-table|. Commas can be inserted for
|
formatting is to be done.
|
||||||
readability.
|
See |fo-table| for possible values and |gq| for how to format text.
|
||||||
|
Commas can be inserted for readability.
|
||||||
To avoid problems with flags that are added in the future, use the
|
To avoid problems with flags that are added in the future, use the
|
||||||
"+=" and "-=" feature of ":set" |add-option-flags|.
|
"+=" and "-=" feature of ":set" |add-option-flags|.
|
||||||
|
|
||||||
|
5
runtime/lua/vim/_meta/options.lua
generated
5
runtime/lua/vim/_meta/options.lua
generated
@ -2528,8 +2528,9 @@ vim.bo.formatlistpat = vim.o.formatlistpat
|
|||||||
vim.bo.flp = vim.bo.formatlistpat
|
vim.bo.flp = vim.bo.formatlistpat
|
||||||
|
|
||||||
--- This is a sequence of letters which describes how automatic
|
--- This is a sequence of letters which describes how automatic
|
||||||
--- formatting is to be done. See `fo-table`. Commas can be inserted for
|
--- formatting is to be done.
|
||||||
--- readability.
|
--- See `fo-table` for possible values and `gq` for how to format text.
|
||||||
|
--- Commas can be inserted for readability.
|
||||||
--- To avoid problems with flags that are added in the future, use the
|
--- To avoid problems with flags that are added in the future, use the
|
||||||
--- "+=" and "-=" feature of ":set" `add-option-flags`.
|
--- "+=" and "-=" feature of ":set" `add-option-flags`.
|
||||||
---
|
---
|
||||||
|
@ -3246,8 +3246,9 @@ return {
|
|||||||
defaults = { if_true = macros('DFLT_FO_VIM') },
|
defaults = { if_true = macros('DFLT_FO_VIM') },
|
||||||
desc = [=[
|
desc = [=[
|
||||||
This is a sequence of letters which describes how automatic
|
This is a sequence of letters which describes how automatic
|
||||||
formatting is to be done. See |fo-table|. Commas can be inserted for
|
formatting is to be done.
|
||||||
readability.
|
See |fo-table| for possible values and |gq| for how to format text.
|
||||||
|
Commas can be inserted for readability.
|
||||||
To avoid problems with flags that are added in the future, use the
|
To avoid problems with flags that are added in the future, use the
|
||||||
"+=" and "-=" feature of ":set" |add-option-flags|.
|
"+=" and "-=" feature of ":set" |add-option-flags|.
|
||||||
]=],
|
]=],
|
||||||
|
Loading…
Reference in New Issue
Block a user