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

option to disable all syntax highlighting while active #235

Closed
yashamon opened this issue Jan 26, 2019 · 3 comments
Closed

option to disable all syntax highlighting while active #235

yashamon opened this issue Jan 26, 2019 · 3 comments
Labels

Comments

@yashamon
Copy link

yashamon commented Jan 26, 2019

Beautiful plugin, but is there an option to temporarily set syntax off when invoking sneak? This would mean having less distraction on screen. Also there seems to be some weird interaction with latex highlighting when more then one match is present.

@justinmk
Copy link
Owner

justinmk commented Jan 26, 2019

temporarily set syntax off when invoking sneak

See :help sneak-events for events which allow you to do what you want.

However disabling/re-enabling syntax is tricky: in old versions of Vim, that's the approach used by Sneak. But it has two problems:

Also there seems to be some weird interaction with latex highlighting when more then one match is present.

Most likely that plugin is using the Vim "conceal" feature, which does not support multiple simultaneous usages. Nothing can be done.

@justinmk justinmk changed the title An option to disable all syntax highlighting when sneaking option to disable all syntax highlighting while active Jan 26, 2019
@yashamon
Copy link
Author

yashamon commented Jan 27, 2019 via email

@yashamon
Copy link
Author

yashamon commented Jan 27, 2019 via email

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

No branches or pull requests

2 participants