Skip to content

Instantly share code, notes, and snippets.

@sbatururimi
Forked from while0pass/listchars.vim
Last active August 12, 2019 05:15
Show Gist options
  • Save sbatururimi/b7a6f6402f1b0fdfd482d2936d0f4486 to your computer and use it in GitHub Desktop.
Save sbatururimi/b7a6f6402f1b0fdfd482d2936d0f4486 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