Thursday, January 10, 2013

Re: Wrong comment character after newline

On Thu, January 10, 2013 13:04, Marco wrote:
> Hi,
>
> I use ConTeXt with the \asciimode setting. That means the comment
> character is %%, instead of %. I set commentstring to %% %s.
> However, when I start a new line in a comment, only one percent sign
> is inserted, instead of two followed by a space:
>
> %% Foo<CR>
> %
> ^ (cursor)
>
> I'd like to have it like this:
>
> %% Foo<CR>
> %%
> ^ (cursor)
>
> What option is responsible for the string that is inserted after a
> newline is started in a comment? It does not seem to be related to
> commentstring.

The commentstring option is only used for folding. I think,
you need to tweak the 'comments' option.

regards,
Christian

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: