neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 7e65f3757bdbe41bbf022b05b6869ad6e7febe0d
parent db7332d6878661b4b21b11376edaf58116c8ec73
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sun, 16 Jun 2024 06:08:36 +0800

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


Diffstat:
Mruntime/doc/options.txt | 3+++
Mruntime/lua/vim/_meta/options.lua | 3+++
Msrc/nvim/options.lua | 3+++
3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt @@ -3842,6 +3842,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 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 occupies, not at the end as usual in Normal mode. To get this cursor position while displaying Tabs with spaces, use: >vim diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua @@ -3830,6 +3830,9 @@ vim.go.lw = vim.go.lispwords --- between tabs and spaces and for trailing blanks. Further changed by --- 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 --- occupies, not at the end as usual in Normal mode. To get this cursor --- position while displaying Tabs with spaces, use: diff --git a/src/nvim/options.lua b/src/nvim/options.lua @@ -4876,6 +4876,9 @@ return { between tabs and spaces and for trailing blanks. Further changed by 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 occupies, not at the end as usual in Normal mode. To get this cursor position while displaying Tabs with spaces, use: >vim