[m-rev.] vim syntax highlighting & line wrapping

Ralph Becket rafe at cs.mu.OZ.AU
Wed Feb 5 11:54:32 AEDT 2003


Fergus Henderson, Tuesday,  4 February 2003:
> On 28-Jan-2003, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> > 
> > Looks good, but it's better to use `<TAB>' or `\t' rather than raw tabs
> > in regular expressions provided you don't have `l' in your cpoptions vim
> > variable.
> 
> Hmm.  That would definitely be more readable, but is it safe to assume
> here that the cpoptions variable won't contain `l'?

This is slightly icky, but you could wrap the script as follows:

	let users_cpoptions = &cpoptions
	let &cpoptions = &cpoptions . "l"

	...

	let &cpoptions = users_cpoptions

- Ralph
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list