Re: comment formatting
- Andrea Ratto wrote:
> Hi,Disclaimer: the following are not tested
> Id like to format comments in this way, and I can't get it.
> <tab>comment text
> Thanks for the help.
:exe 'set comments=s:/**,m:\' . "\t" . ',ex:*/'
:set noet ts=8 comments=s8:/**,ex:*/
(Try more variations if none of the above work OK)?
In all cases, close the comment by typing only a slash after the tab has been
autoinserted: this ought to delete the tab and insert */ in its stead.
Note: since whitespace characters are used as separators between options in a
":set" command, they must be backslash-escaped when they are part of the value
(similarly bar, double-quote and backslash).