[m-dev.] vim
Tyson Dowd
trd at cs.mu.OZ.AU
Fri Nov 26 15:48:51 AEDT 1999
On 25-Nov-1999, David Glen JEFFERY <dgj at cs.mu.OZ.AU> wrote:
> On 24-Nov-1999, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> >
> > The layout for those comments is not what our coding standards recommend.
> > It should be
> >
> > /*
> > ** This is a long comment
> > ** spread over several lines.
> > */
> > ...
>
> Does anyone know off the top of their head what the magic incantations are for
> vim to automagically layout comments like this? My setup makes things look OK,
> but it is not what the coding standard says. :-(
set comments=sr:/*,mb:**,el:*/,://,b:#,b:%,fb:-,:#%,://%,fb:*,b:\"
It's the first bit that does it, but the other ones seem to be useful
for coding on Mercury in general.
/*
** It does comments like this
*/
# Like this
% Like this
" Like this
// Like this
* And autoindents on bullet points
like this one.
- And also like
this one.
also works.
--
Tyson Dowd #
# Surreal humour isn't eveyone's cup of fur.
trd at cs.mu.oz.au #
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list