[CRIU] [PATCH 2/3] show: Drop tab'ified empty lines
Cyrill Gorcunov
gorcunov at openvz.org
Mon Jan 30 09:38:35 EST 2012
On Mon, Jan 30, 2012 at 06:15:21PM +0400, Kir Kolyshkin wrote:
> On 01/30/2012 05:31 PM, Cyrill Gorcunov wrote:
> >Signed-off-by: Cyrill Gorcunov<gorcunov at openvz.org>
>
>
> Speaking of whitespace bugs, for vim users I suggest to add this to
> your ~/.vimrc
>
> filetype on
> let c_space_errors = 1
> highlight FormatError ctermbg=darkred guibg=darkred
> match FormatError /\s\+$\|\ \+\t\|\%80v.\|\ \{8\}/
>
> The last line highlights:
> - spaces at EOL
> - a space followed by a tab
> - 80th column of text (to mark too long lines)
> - eight consecutive spaces (that is, what should be a tab)
>
> I guess emacs users can recommend something similar, too.
Yeah, I've something similar here
au Syntax * syn match localWhitespaceError /\(\zs\%#\|\s\)\+$/ display
au Syntax * syn match localWhitespaceError / \+\ze\t/ display
I'll add your rules as well, thanks!
Cyrill
More information about the CRIU
mailing list