Proposal for SAMBA_3_0/README.Coding

simo idra at samba.org
Wed Jun 27 23:00:18 GMT 2007


On Tue, 2007-06-26 at 14:29 +0900, SATOH Fumiyasu wrote:
> FYI.
> 
> At Mon, 25 Jun 2007 23:45:57 -0500,
> Gerald (Jerry) Carter wrote:
> > * Use 8 Space Tabs to Indent
> >   No whitespace filler.
> 
> For generic(?) vi's .exrc:
> 
> set tabstop=8
> set shiftwidth=8
> 
> > * No Trailing Whitespace
> >   Use source/script/strip_trail_ws.pl to clean you files before committing.
> 
> 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.\+/' 


Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org



More information about the samba-technical mailing list