I notice this most with the 'comments' option. To reproduce, try
$ vim mymodule.module
:verbose set comments?
:e mymodule.info
:e mymodule.module
:verbose set comments?
This is not always reproducible. In fact, sometimes 'comments' is set incorrectly even the first time I check. :-(
I think it has to do with the changes in #1847306: Add configuration to disable automatic formatting feature..
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | option-reset-1892948-3.patch | 3.35 KB | benjifisher |
| #1 | option-reset-1892948-1.patch | 1.45 KB | benjifisher |
Comments
Comment #1
benjifisherFixed and committed: 451940b.
This is a partial revert of 95d5f69 and 955dba8.
Comment #3
benjifisherI realized that even though
'comments'was set properly, my doc blocks were having trouble because'formatoptions'was being reset. The problem was theb:undo_ftpluginvariable. The attached patch fixes this by moving the conditional:finishline later in the file.The patch also does two things to comply with Vim coding standards:
'cpo'optionb:undo_ftpluginso thatftplugin.vimcan undo the changes made here.I have already committed the patch: 50066d5.