[bind10-dev] redundant white spaces and colored git diff

Michal 'vorner' Vaner michal.vaner at nic.cz
Mon Jun 20 19:14:13 UTC 2011


Hello

On Mon, Jun 20, 2011 at 11:23:48AM -0700, JINMEI Tatuya / 神明達哉 wrote:
> Colored version of git diff is a very effective tool to identify these
> editorial issues.  See, e.g.:
> http://gyazo.com/bdd070d0925080fabcc279a2984080f2.png
> (the red cursors indicate redundant white spaces)

How do you turn the colors on in diff? I think I don't see them (I have colors
in diff to show what is new and stuff). I know how to do it in vim, though:

au BufEnter * match RedundantSpaces /\s\+$\| \+\ze\t/
highlight RedundantSpaces ctermbg=red guibg=red

(it also highlights spaces that are at the beginning of tabs).

I also have this, to mark too long lines. But it doesn't work inside strings and
stuff like that:

au BufEnter */bind10*/* syn region OverWidth start=/\%80v./ end=/$/
highlight OverWidth ctermfg=white ctermbg=blue

With regards

-- 
Anyone who goes to a psychiatrist ought to have his head examined.
		-- Samuel Goldwyn

Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20110620/da82bb40/attachment.bin>


More information about the bind10-dev mailing list