On 04/11/12 13:48, Marcin Szamotulski wrote:
On 11:53 Sun 04 Nov     , Andre Majorel wrote:
In help.txt, tabs are used as if help.vim didn't strip the "|"
around tag references. Is it how it's supposed to be ?

Thanks in advance.

--
André Majorel http://www.teaser.fr/~amajorel/
Subliminal message : Vim needs elastic tab stops.

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

See my other answer to your post.  help.vim is not stripping "|", (and
also "*").  This is done by the conceal vim feature.  If you have it
(:echo has("conceal")) then you can check where the 'cole' option was
set from: open a help file and run:
:verb set cole?

Normally it is set in help.vim.  So I guess you have overwritten it
somehow, or your vim/gvim has not conceal feature.  See ":help 'cole'",
":help 'cocu'", ":help conceal".

Best,
Marcin


What the OP means, and I confirm it, is that when 'conceallevel' is 2 (as $VIMRUNTIME/ftplugin/help.vim sets it) the columns and indents in help files become misaligned. OTOH, setting 'conceallevel' to zero (either by an after-syntax plugin, or by running a feature-poor Vim compiled with -conceal, or even manually), the columns and indents align properly.

I suppose that this is "how it is supposed to be", for several reasons:
- The 'conceal' feature is relatively recent in mainline Vim (though it existed before as an unofficial patch). The help files are much more ancient, and of course when vanilla Vim did not have +conceal the help files took no account of the feature - There are still Vim versions (from Tiny to Normal) which are compiled without the feature. +conceal is present only in Big and Huge builds. - There are still diehard conservatives like me, who set 'conceallevel' to zero in help files - Vim's indent plugins mostly take no account of +conceal; they treat concealed text as visible text.


Best regards,
Tony.
--
The war between Emacs and Vi is over.  Vi has won with 3 to 1.
                        http://www.ssc.com/lg/issue30/raymond.html

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