Skip to content

Instantly share code, notes, and snippets.

@rgsingh
Last active August 29, 2015 14:25
Show Gist options
  • Save rgsingh/ccd923c0ba4af658c9b8 to your computer and use it in GitHub Desktop.
Save rgsingh/ccd923c0ba4af658c9b8 to your computer and use it in GitHub Desktop.
Vim show non-visible characters and look for whitespace or tab
:syntax on
:set syntax=whitespace
... then search for a string
...tab characters will be highlighted in blue
...space characters will be highlighted in red
If comparing more than one file in split windows, switch to that file (Ctrl-W w)
and set the syntax equal to whitespace to enable the color coding effect (:set syntax=whitespace).
# can be used to show all non-printable characters as ASCII characters.
:set list
:set nolist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment