Date: Mon, 25 Sep 2000 08:05:19 +0200 From: Jeroen Ruigrok van der Werven <jruigrok@via-net-works.nl> To: Blaz Zupan <blaz@amis.net> Cc: freebsd-current@FreeBSD.ORG Subject: Re: .indent.pro for KNF? Message-ID: <20000925080519.B60278@lucifer.bart.nl> In-Reply-To: <Pine.BSF.4.21.0009242019310.48724-100000@titanic.medinet.si>; from blaz@amis.net on Sun, Sep 24, 2000 at 08:24:44PM %2B0200 References: <Pine.BSF.4.21.0009242019310.48724-100000@titanic.medinet.si>
next in thread | previous in thread | raw e-mail | index | archive | help
-On [20000924 20:25], Blaz Zupan (blaz@amis.net) wrote:
>Does anybody have a .indent.pro file for indent(1) that enforces KNF style as
>specified in style(9)?
Try this if you use vim:
augroup cprog
" Remove all cprog autocommands
autocmd!
autocmd BufNewFile,BufRead *.c,*.h set formatoptions=croql
autocmd BufNewFile,BufRead *.c,*.h set cindent
autocmd BufNewFile,BufRead *.c,*.h set comments=sr:/*,mb:*,el:*/,://
autocmd BufNewFile,BufRead *.c,*.h set cinoptions=t0(0
autocmd BufNewFile,BufRead *.c,*.h hi PreProc ctermfg=DarkCyan guifg
=DarkCyan
augroup END
--
Jeroen Ruigrok van der Werven Network- and systemadministrator
<jruigrok@via-net-works.nl> VIA Net.Works The Netherlands
BSD: Technical excellence at its best http://www.via-net-works.nl
Grant me the serenity to accept the things I cannot change, courage to
change the things I can, and wisdom to know the difference...
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000925080519.B60278>
