docs: document 'list' behavior when 'listchars' excludes "tab" (#29360)

(cherry picked from commit 7e65f3757b)
This commit is contained in:
zeertzjq
2024-06-16 06:08:36 +08:00
committed by github-actions[bot]
parent 1ab52dff9a
commit 891b235df0
3 changed files with 9 additions and 0 deletions

View File

@ -3834,6 +3834,9 @@ A jump table for the options with a short description can be found at |Q_op|.
between tabs and spaces and for trailing blanks. Further changed by between tabs and spaces and for trailing blanks. Further changed by
the 'listchars' option. the 'listchars' option.
When 'listchars' does not contain "tab" field, tabs are shown as "^I"
or "<09>", like how unprintable characters are displayed.
The cursor is displayed at the start of the space a Tab character The cursor is displayed at the start of the space a Tab character
occupies, not at the end as usual in Normal mode. To get this cursor occupies, not at the end as usual in Normal mode. To get this cursor
position while displaying Tabs with spaces, use: >vim position while displaying Tabs with spaces, use: >vim

View File

@ -3820,6 +3820,9 @@ vim.go.lw = vim.go.lispwords
--- between tabs and spaces and for trailing blanks. Further changed by --- between tabs and spaces and for trailing blanks. Further changed by
--- the 'listchars' option. --- the 'listchars' option.
--- ---
--- When 'listchars' does not contain "tab" field, tabs are shown as "^I"
--- or "<09>", like how unprintable characters are displayed.
---
--- The cursor is displayed at the start of the space a Tab character --- The cursor is displayed at the start of the space a Tab character
--- occupies, not at the end as usual in Normal mode. To get this cursor --- occupies, not at the end as usual in Normal mode. To get this cursor
--- position while displaying Tabs with spaces, use: --- position while displaying Tabs with spaces, use:

View File

@ -4868,6 +4868,9 @@ return {
between tabs and spaces and for trailing blanks. Further changed by between tabs and spaces and for trailing blanks. Further changed by
the 'listchars' option. the 'listchars' option.
When 'listchars' does not contain "tab" field, tabs are shown as "^I"
or "<09>", like how unprintable characters are displayed.
The cursor is displayed at the start of the space a Tab character The cursor is displayed at the start of the space a Tab character
occupies, not at the end as usual in Normal mode. To get this cursor occupies, not at the end as usual in Normal mode. To get this cursor
position while displaying Tabs with spaces, use: >vim position while displaying Tabs with spaces, use: >vim