[m-dev.] proposed update of coding standards

Ralph Becket rafe at cs.mu.OZ.AU
Wed Mar 30 16:53:14 AEST 2005


Zoltan Somogyi, Wednesday, 30 March 2005:
> +Since "empty" lines that have spaces or tabs on them
> +prevent the proper functioning of paragraph-oriented commands in vi,
> +lines shouldn't have trailing white space.
> +They can be removed with a vi macro such as the following.
> +(Each pair of square brackets contains a space and a tab.)
> +
> +<pre>
> +	map ;x :g/[     ][      ]*$/s///^M
> +<\pre>

That can be simplified to 

	map ;x :%s/[[:space:]]\+$//

Otherwise that looks fine.

-- Ralph
--------------------------------------------------------------------------
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