Proposal for SAMBA_3_0/README.Coding

Michael Adam ma at sernet.de
Thu Jun 28 07:34:22 GMT 2007


On Wed, Jun 27, 2007 at 07:00:18PM -0400, simo wrote:
> On Tue, 2007-06-26 at 14:29 +0900, SATOH Fumiyasu wrote:
> > For VIM's .vimrc:
> > 
> > if has("syntax") && (&t_Co > 2 || has("gui_running"))
> > 	syntax on
> > 	function! ActivateInvisibleCharIndicator()
> > 		syntax match TrailingSpace "[ \t]\+$" display containedin=ALL
> > 		highlight TrailingSpace ctermbg=Red
> > 	endf
> > 	autocmd BufNewFile,BufRead * call ActivateInvisibleCharIndicator()
> > endif
> 
> I added this to mark the characters that go over the 80 column mark:
> 
> set textwidth=80
> au BufNewFile,BufRead *.c,*.h exec 'match Todo /\%>' .  &textwidth .
> 'v.\+/' 

That's nifty!

The downside ist: It is really giving me a hard time trying not to 
reformat half of the lines, while I am at it... :-)


-- 
Michael Adam <ma at sernet.de>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE


More information about the samba-technical mailing list