Proposal for SAMBA_3_0/README.Coding

Kai Blin kai at samba.org
Thu Jun 28 09:25:33 GMT 2007


On Tuesday 26 June 2007 07:29:53 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

If you make that "highlight TrailingSpace ctermbg=Red guibg=Red", this will 
also work in gvim.

Also, for Wine I have a highlight on C++ style comments, like

autocmd BufNewFile,BufRead *.c highlight cCommentL ctermbg=Red guibg=Red

Cheers,
Kai

-- 
Kai Blin
WorldForge developer  http://www.worldforge.org/
Wine developer        http://wiki.winehq.org/KaiBlin
Samba team member     http://www.samba.org/samba/team/
--
Will code for cotton.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070628/9a5feb29/attachment.bin


More information about the samba-technical mailing list