How can I display <TAB> as strings in vim

I want to know if <tab>as | (bars) when coding in vim like this imageIs there any way to show them.

Please, any solution other than set listcharsand set listsince it affects eol and spaces.

+4
source share
1 answer
:set list
:set lcs=tab:\|\  " the last character is space!

The parameter tabconsists of two characters: |and a space. The first character is used once. The second character is repeated to fill the space that the tab usually occupies. See :h lcs.

Example result:

enter image description here

, , , , . , :

:set list listchars=tab:\|\-

:

enter image description here

+3

Source: https://habr.com/ru/post/1664084/


All Articles