Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dkasak opened this issue May 7, 2021 · 1 comment
Open

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

dkasak opened this issue May 7, 2021 · 1 comment

Comments

@dkasak
Copy link

dkasak commented May 7, 2021

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 vim-pandoc/vim-pandoc#393, but it was suggested this is a better location.

@user202729
Copy link

user202729 commented Sep 1, 2021

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants