vim-pandoc / vim-pandoc-syntax

pandoc markdown syntax, to be installed alongside vim-pandoc
MIT License
425 stars 61 forks source link

Math block delimiters ($$) shouldn't be concealed to nothing #359

Open dkasak opened 3 years ago

dkasak commented 3 years ago

Unless I'm having an interaction from another plugin, the math block delimiters (double dollar signs, $$) are concealed to an empty string. This is disorienting and makes it hard to navigate into an open but empty math block. I often enter $$\n\n$$, then exit insert mode and want to move inside the math block I just created, but since the dollar signs are invisible, I don't know whether my cursor is inside or not.

The proposal is then not to conceal the dollar signs or to conceal them into a more appropriate symbol instead of the empty string (unless I landed on a weird interaction with another plugin of mine).

Previously raised at https://github.com/vim-pandoc/vim-pandoc/issues/393, but it was suggested this is a better location.

user202729 commented 2 years ago

It's not this plugin's bug, it's the interaction with another plugin -- which could be vim's default TeX plugin or vimtex (depends on which plugin is used to handle LaTeX files)

For vim's built-in plugin, use let g:tex_conceal='amgs' (see :help g:tex_conceal for explanation)

For other plugins read their documentation. For instance vimtex use let g:vimtex_syntax_conceal={'math_bounds': 0}