Post

Vim show hidden characters

How to display hidden characters such as tabs, trailing spaces, and line endings in Vim using the listchars option.

To reveal invisible characters in Vim, use the :set listchars command. This configures how each type of hidden character is displayed: $ for end-of-line, >- for tabs, ~ for trailing spaces, and angle brackets for text extending beyond the visible area. After setting this, enable it with :set list.

1
:set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<
This post is licensed under CC BY 4.0 by the author.