Show hidden characters with Neovim
Published on 2024-03-03 • Modified on 2024-03-03
This snippet shows how to show hidden characters with Neovim. We must use the listchars
parameter. In the following configuration:
- trailing (useless) spaces are displayed with
-
- tabulation are displayed with
>-
- end of the line (if over the window) is displatey with
#
Note that these characters are displayed differently from your standard colour to avoid confusion with the regular characters. In my case, they are displayed in blue.
set list
set listchars=tab:>-,trail:-,extends:#,nbsp:.
More on Stackoverflow Read the doc More on the web Random snippet
Call to action
Did you like this post? You can help me back in several ways: (use the "reply" link on the right to comment or to contact me )
- Report any error/typo.
- Report something that could be improved.
- Like and repost!
- Follow me on Bluesky 🦋
- Subscribe to the RSS feed.
- Click on the More on Stackoverflow buttons to make me win "Announcer" badges 🏅.
Thank you for reading! And see you soon on Strangebuzz! 😉
