We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free. Anti-spam check. Do not fill this in!==Showing long lines== By default, lines longer than the screen width are not wrapped, and you can horizontally scroll the text, for example by moving the cursor to the end of a long line. Therefore there may be characters preceding the visible text (non-displayed characters on the left), and there may be characters that extend after the visible text (non-displayed characters on the right). The <code>listchars</code> option can be used to show a highlighted symbol when characters are not displayed, for example: <pre> " Show < or > when characters are not displayed on the left or right. :set list listchars=precedes:<,extends:> " Same, but also show tabs and trailing spaces. :set list listchars=tab:>-,trail:.,precedes:<,extends:> </pre> Summary: Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA Cancel Editing help (opens in new window) Retrieved from "https://vim.fandom.com/wiki/Highlight_unwanted_spaces"