Under :help comments there is this:
'comments' 'com' string (default "s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-")
local to buffer
{not in Vi}
{not available when compiled without the
|+comments|
feature}
A comma separated list of strings that can start a comment line.
See |format-comments|. See |option-backslash| about using
backslashes to insert a space.
If you have access to Steve Oualline's Book in Vim, he goes through
examples of using the comments option to define what is a comment. He
gives an example:
s1:/*,mb:*,ex:*/
and says of it:
"The s1 command indicates that this is the start of a three-part comment
(s) and the other lines in the command need to be indented an extra
space (1). The comment starts with the string /*.
The middle of the comment is defined by the mb:* part. The m indicates
a middle piece, and the b says that a blank must follow anything that is
inserted. The text that begins the comment is *.
The ending is specified by ex:*/. The e indicates the end, and the x
indicates that you have only to type the last character of the ending to
finish the comment. The end delimiter is */." (Oualline, page 271).
I have not worked with this feature, but hope this reference is helpful.
John
On 07/24/02 16:23 +0200, Erika Pacholleck wrote:
> Now I spent a whole day in searching all my .vim files,
> reading all through the :help stuff and used my mailarchive
> to get a clue - either I am missing simply a part of the
> whole puzzle or I am just too <insert whatever> to understand.
>
> Supposed I have a text which may begin with [ \t]+
> blahblah
> blahblah
>
> and I need to define a special comment marker like "note1"
> blahblah
> note1 no blahblah
> note1 use blub instead
> blahblah
>
> and further I want this comment marker to be auto-inserted
> whenever I do <enter>, what parts would I need for this?
> The whole stuff works with mail just on its own, but I cannot
> find out what it is that makes it work. I have not auto-
> insert and gq also does not work like it should.
> Any help appreciated.
> --
> Erika Pacholleck <[EMAIL PROTECTED]>
> mutters: insert vowels of last name