From f89a275e32110a63e8ee1fc6ca75e0cf09194185 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 8 Aug 2021 17:44:56 -0400 Subject: vim-patch:8.2.3160: 'breakindent' does not work well for bulleted lists Problem: 'breakindent' does not work well for bulleted and numbered lists. Solution: Add the "list" entry to 'breakindentopt'. (Christian Brabandt, closes vim/vim#8564, closes vim/vim#1661) https://github.com/vim/vim/commit/4a0b85ad0193ac162e2d8458e4b1c5ad2e2b0193 --- runtime/doc/options.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index f55ec62b77..04cb7141df 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1038,7 +1038,10 @@ A jump table for the options with a short description can be found at |Q_op|. continuation (positive). sbr Display the 'showbreak' value before applying the additional indent. - The default value for min is 20 and shift is 0. + list:{n} Adds an additional indent for lines that match a + numbered or bulleted list (using the + 'formatlistpat' setting). + The default value for min is 20, shift and list is 0. *'browsedir'* *'bsdir'* 'browsedir' 'bsdir' string (default: "last") -- cgit From 43a874ab7441a4a0ab6e973f4fd7add394ed6dd9 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 8 Aug 2021 18:07:57 -0400 Subject: vim-patch:8.2.3198: cannot use 'formatlistpat' for breakindent Problem: Cannot use 'formatlistpat' for breakindent. Solution: Use a negative list indent. (Maxim Kim, closes vim/vim#8594) https://github.com/vim/vim/commit/f674b358fc18cf1641a066cc5de73da69e651024 Port get_showbreak_value() from patch v8.1.2281 to avoid breaking changes when porting older patches. --- runtime/doc/options.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 04cb7141df..f0ce15ac0f 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1038,9 +1038,11 @@ A jump table for the options with a short description can be found at |Q_op|. continuation (positive). sbr Display the 'showbreak' value before applying the additional indent. - list:{n} Adds an additional indent for lines that match a + list:{n} Adds an additional indent for lines that match a numbered or bulleted list (using the 'formatlistpat' setting). + list:-1 Uses the length of a match with 'formatlistpat' + for indentation. The default value for min is 20, shift and list is 0. *'browsedir'* *'bsdir'* -- cgit