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

Original message:
> Hi, I have a bit of an issue with 'comments' in python files, in
> Vim7.3.. My settings are: fo="cqn", tw=98, comments=''. If I do :set
> comments="b:#" and then do :set comments to check, 'comments' shows up
> as empty. I don't have any autocommand for python files that would
> change comments option. I do have +comments compiled into Vim.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to