vim-pandoc-syntax icon indicating copy to clipboard operation
vim-pandoc-syntax copied to clipboard

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

Open dkasak opened this issue 4 years ago • 1 comments

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.

dkasak avatar May 07 '21 19:05 dkasak

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}

user202729 avatar Sep 01 '21 07:09 user202729