Re: git and trailing whitespace



2009-05-06 klockan 11:40 skrev Bastien Nocera:
> On Wed, 2009-05-06 at 11:18 +0200, Loïc Minier wrote:
> >  I use vim and it displays trailing whitespaces as blue dots for me:
> >   set list
> >   set listchars=tab:>-,trail:.,extends:>,precedes:<,nbsp:%
> >  (the relevant config above is "trail:."; I find the other ones useful
> >  as well)
> 
> Eek. That'd look bad. I believe this line is from Xavier's vimrc:
> set listchars=eol:•,tab:↦\ ,trail:»,extends:↷,precedes:↶

This is even cooler:

  silent! set listchars=eol:$,trail:_,extends:»,precedes:«,tab:»·,nbsp:~
  silent! let &showbreak="↪ "

...and it will also avoid annoying errors on startup in case you're not
using a UTF-8 shell/Gvim.

    — Wouter

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]