diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-03-03 09:35:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-03 09:35:26 +0800 |
| commit | aeddd66a2a07dfa32016d7289b845a25e5e86e2b (patch) | |
| tree | 6ac7a39f78455b6c3bf5474b0de95e8d2c09958e /runtime/lua | |
| parent | a8361c3afc5b9281814e9f16a9d4291e095b38fa (diff) | |
| parent | f1c57b39fd5e8abd4dfe276d793450b541f549d5 (diff) | |
Merge pull request #38133 from zeertzjq/vim-9.2.0088
vim-patch:9.2.{0088,0090}: 'listchars' "leadtab"
Diffstat (limited to 'runtime/lua')
| -rw-r--r-- | runtime/lua/vim/_meta/options.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index e0747c0041..99bd6ede5d 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -4097,7 +4097,7 @@ vim.go.lw = vim.go.lispwords --- position while displaying Tabs with spaces, use: --- --- ```vim ---- set list lcs=tab:\ \ +--- let &list = v:true | let &lcs = 'tab: ' --- ``` --- --- Note that list mode will also affect formatting (set with 'textwidth' @@ -4180,6 +4180,18 @@ vim.wo.list = vim.o.list --- --- Where "XXX" denotes the first non-blank characters in --- the line. +--- *lcs-leadtab* +--- leadtab:xy[z] +--- Like `lcs-tab`, but only for leading tabs. When +--- omitted, the "tab" setting is used for leading tabs. +--- `lcs-tab` must also be set for this to work. *E1572* +--- You can combine it with "tab:", for example: +--- +--- ```vim +--- let &listchars = 'tab:>-,leadtab:. ' +--- ``` +--- This shows leading tabs as periods(.) and other tabs +--- as ">--". --- *lcs-trail* --- trail:c Character to show for trailing spaces. When omitted, --- trailing spaces are blank. Overrides the "space" and |
