Skip to content

Instantly share code, notes, and snippets.

@while0pass
Last active July 9, 2024 15:13
Show Gist options
  • Save while0pass/511985 to your computer and use it in GitHub Desktop.
Save while0pass/511985 to your computer and use it in GitHub Desktop.

Revisions

  1. while0pass renamed this gist Jan 22, 2020. 1 changed file with 8 additions and 3 deletions.
    11 changes: 8 additions & 3 deletions gistfile1.vim → listchars.vim
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    " hide hidden chars
    :set nolist

    " show hidden characters in Vim
    :set list

    @@ -9,6 +12,8 @@
    " \u2592\u2591 are used for tab, \u2593 for trailing spaces in line, and \u2591 for nbsp.
    " In Vim help they suggest using ">-" for tab and "-" for trail.

    " hide hidden chars
    :set nolist

    " change showbreak when line numbers are on or off.
    " show no char when line numbers are on, and \u21aa otherwise.
    au OptionSet number :if v:option_new | set showbreak= |
    \ else | set showbreak=↪ |
    \ endif
  2. while0pass revised this gist Jan 17, 2020. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.vim
    Original file line number Diff line number Diff line change
    @@ -3,10 +3,10 @@

    " settings for hidden chars
    " what particular chars they are displayed with
    :set lcs=tab:▒░,trail:
    :set lcs=tab:▒░,trail:,nbsp:░
    " or
    :set listchars=tab:▒░,trail:
    " used \u2592\u2591 for tab and \u2593 for trailing spaces in line.
    :set listchars=tab:▒░,trail:,nbsp:░
    " \u2592\u2591 are used for tab, \u2593 for trailing spaces in line, and \u2591 for nbsp.
    " In Vim help they suggest using ">-" for tab and "-" for trail.

    " hide hidden chars
  3. while0pass revised this gist Aug 6, 2010. 2 changed files with 14 additions and 14 deletions.
    14 changes: 0 additions & 14 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,14 +0,0 @@
    # 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

    14 changes: 14 additions & 0 deletions gistfile1.vim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    " 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

  4. while0pass renamed this gist Aug 6, 2010. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. while0pass renamed this gist Aug 6, 2010. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. while0pass revised this gist Aug 6, 2010. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,8 @@
    :set lcs=tab:▒░,trail:▓
    # or
    :set listchars=tab:▒░,trail:▓
    # used \u2592\u2591 for tab and \u2593 for trailing spaces in line
    # 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
  7. while0pass created this gist Aug 6, 2010.
    13 changes: 13 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # 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

    # hide hidden chars
    :set nolist