[CRIU] [PATCH 2/3] show: Drop tab'ified empty lines

Kir Kolyshkin kir at openvz.org
Mon Jan 30 09:15:21 EST 2012


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.


More information about the CRIU mailing list