Re: On Tabs and Spaces
- From
- Andy Parkins <andyparkins@gmail.com>
- Date
- Oct 17, 2007, 11:32 UTC
- Message-ID
- <200710171232.13062.andyparkins@gmail.com>
- In-Reply-To
- <402731c90710162041q457c7dd3tf906ba0c6faf29ca@mail.gmail.com>
On Wednesday 2007 October 17, David wrote:
> The last two are extremely useful, especially if you're hacking on > python. That's > listchars=(less-than)tab(greater-than)(colon)(dot)(backslash)(space) > (don't forget the space!).
On the subject of high-ascii chars. Here's my favourite for your .vimrc
execute 'set listchars+=tab:'.nr2char(187).nr2char(183)
187 is the "significantly greater than" symbol and 183 is a central dot. i.e. every character of a tab is non-space. The actual characters used aren't actually the point I wanted to make; the thing here is that two non-space characters are used, so every column occupied by the tab is visible - this makes it very easy to see where tabs end and spaces begin.
Andy
-- Dr Andy Parkins, M Eng (hons), MIET andyparkins@gmail.com