On 10/07/11 15:38, Nikolai Weibull wrote:
On Sun, Jul 10, 2011 at 15:26, Tony Mechelynck
<[email protected]> wrote:
Hm, it seems that the latest versions of ftplugin/help.vim and
syntax/help.vim don't make provision for the possibility that the +conceal
feature might have been left out at compile-time. I'm adding the maintainers
of these scripts to the CC list of this post.
I did not add the 'cole' and 'cocu' settings to that file. If you
check the Latest Revision, that’s well before conceal was added.
Also, I would have written conceallevel=2 concealcursor=nc (as in
formatoptions and textwidth instead of fo and tw).
Either way, shouldn’t Vim provide the possibility of setting these
options even if the feature is disabled without erroring out?
Nikolai, I don't know who made the change, I CC-ed you because you are
the man in charge.
I think that we cannot rely on options which are part of features
excluded at compile-time being accepted at run-time.
I would have written
setlocal formatoptions+=tcroql textwidth=78
if has('conceal')
set conceallevel=2 concealcursor=nc
endif
For the syntax script it is a little more complicated, maybe a
user-command is in order, to add the "conceal" keyword only when
+conceal is compiled-in. I'm confident that Bram will be able to find
the best solution. (When will he have the time for it? That's a
different question.)
Best regards,
Tony.
--
"If that makes any sense to you, you have a big problem."
-- C. Durance, Computer Science 234
--
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