Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BenGitsCode/1ed58b7c133019afc5a0979db6335c50 to your computer and use it in GitHub Desktop.
Save BenGitsCode/1ed58b7c133019afc5a0979db6335c50 to your computer and use it in GitHub Desktop.
show/hide hidden characters in Vim
" show hidden characters in Vim
:set list
" settings for hidden chars
" what particular chars they are displayed with
:set lcs=tab:▒░,trail:▓
" or
:set listchars=tab:▒░,trail:▓
" used \u2592\u2591 for tab and \u2593 for trailing spaces in line.
" In Vim help they suggest using ">-" for tab and "-" for trail.
" hide hidden chars
:set nolist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment