HOWTO: make vim show ending line spaces as characters
When you edit a file with vim, it’s useful to understand where the line ends especially if there are spaces at the end of the line. Instead checking all lines, you can highlight white spaces. How?
- Open Vim from Terminal
-
Type
:set list
- You see an output like the one below
-
If you want see each space as character, type this command
:set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<
- The output should look like below
Very simple and useful tip! :)
If you have any doubt, advice or something else, comment this post! :)
Source: Stackoverflow
Comments