On 11/07/2010 10:51 AM, ZyX wrote:
Reply to message «'comments' option not working..»,
sent 18:47:25 07 November 2010, Sunday
by AK:

Of course it is not working, if you do
     set comments="b:#"
. Vim will parse it like that
     set comments=
because everything starting with `"' is a comment. You should either use
     let&l:comments="b:#"
or
     setlocal comments=b:#
. And note not to use `set' when you set local option, use `setlocal'.

Thanks! This is the second time this one bites me, At first I did
:set comments=#, which gave me an error "zero length string", I thought
this meant it has to be enclosed in quotes. -ak

--
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

Reply via email to