Last active
August 29, 2015 14:25
-
-
Save rgsingh/ccd923c0ba4af658c9b8 to your computer and use it in GitHub Desktop.
Vim show non-visible characters and look for whitespace or tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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