On 26/10/09 16:17, Gregory Margo wrote:
>
> On Mon, Oct 26, 2009 at 03:15:29PM +0530, Rajesh Kannan wrote:
>> I use the Baan programming language where "|" is the comment. I tried
>> to add the following to .vmrc but of no avail.
>>
>> set comments+=n:|.*
>>
>> There are no errors when vim starts but it does not work either.
>>
>> Please can someone suggest
>>        1) how to add the "|" as a comment symbol
>>        2) make vim autocomment the next line when the previous line is
>> a baan comment?
>
> Try this:
>
>      set comments+=:\|
>      set formatoptions+=ro
>

Yes: space, tab, backslash, double-quote and... vertical-bar need 
backslash-escaping when used in the ":set" command in the value of an 
option. See ":help option-backslash" for an explanation.

Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
204. You're being audited because you mailed your tax return to the IRC.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to