-*version9.txt* For Vim version 9.1. Last change: 2025 Oct 03
+*version9.txt* For Vim version 9.1. Last change: 2025 Oct 04
VIM REFERENCE MANUAL by Bram Moolenaar
"eob" in 'fillchars'.
- Support for using multibyte items with the "stl", "stlnc", "foldopen",
"foldclose" and "foldsep" items in the 'fillchars' option.
-- Support for configuring the character used inside a fold level region using
- "foldinner" in 'fillchars'.
Support for the XChaCha20 encryption method. 'cryptmethod'
\ ]
call assert_equal(expected, lines)
- " check setting foldinner
set fdc=1 foldmethod=indent foldlevel=10
call setline(1, ['one', ' two', ' two', ' three', ' three', 'four'])
let lines = ScreenLines([1, 6], 22)
\ ]
call assert_equal(expected, lines)
+ " check setting foldinner
set fillchars+=foldinner:\
let lines = ScreenLines([1, 6], 22)
let expected = [
\ ]
call assert_equal(expected, lines)
+ " check Unicode chars
+ set fillchars=foldopen:▼,foldclose:▶,fold:⋯,foldsep:‖,foldinner:⋮
+ let lines = ScreenLines([1, 6], 22)
+ let expected = [
+ \ ' one ',
+ \ '▼ two ',
+ \ '‖ two ',
+ \ '▼ three',
+ \ '⋮ three',
+ \ ' four ',
+ \ ]
+ call assert_equal(expected, lines)
+
+ set fillchars-=foldinner:⋮
+ let lines = ScreenLines([1, 6], 22)
+ let expected = [
+ \ ' one ',
+ \ '▼ two ',
+ \ '‖ two ',
+ \ '▼ three',
+ \ '2 three',
+ \ ' four ',
+ \ ]
+ call assert_equal(expected, lines)
+
+ normal! 5ggzc
+ let lines = ScreenLines([1, 5], 24)
+ let expected = [
+ \ ' one ',
+ \ '▼ two ',
+ \ '‖ two ',
+ \ '▶+--- 2 lines: three⋯⋯⋯',
+ \ ' four ',
+ \ ]
+ call assert_equal(expected, lines)
+
%bw!
set fillchars& fdc& foldmethod& foldenable&
endfunc