On Jun 13, 12:25 am, Adrien "Axioplase" Piérard <axioplase
+vim...@gmail.com> wrote:
>
> 3/ A bug?
> I open a tex file, and>> :echo g:tex_conceal
> >>  agm
>
> as set in .vim/after/syntax/tex.vim, which is loaded, I think, last,
> and sets cole to 2, and cocu to nc.
> However, the dollars in LaTeX's math mode do not appear.
> If I reload the file with>> :e
>
> then they do appear as wanted.
>

Am I correct in my understanding, that your file .vim/after/syntax/
tex.vim, has a line like:

let g:tex_conceal='agm'

?

If so, then your problem is in assuming the g:tex_conceal "option"
works like built-in Vim options like 'wrap' or 'guifont' where they
take effect immediately. Anything that looks like g:some_var_name
(which you will need to set using the :let command, rather than :set
or :setlocal) is not really an option but a vimscript variable.
Setting these variables has no effect by itself. This particular
variable is probably examined by the tex.vim syntax file to determine
which rules to set up. Therefore, it needs to be set *before* the
tex.vim syntax file is sourced to have the desired effect. The best
place to put this particular option is therefore not in an "after"
file, but rather in your .vimrc or a plugin file.

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui