-
Notifications
You must be signed in to change notification settings - Fork 89
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
Comments
See However disabling/re-enabling syntax is tricky: in old versions of Vim, that's the approach used by Sneak. But it has two problems:
Most likely that plugin is using the Vim "conceal" feature, which does not support multiple simultaneous usages. Nothing can be done. |
Awesome!
I don't know how to go to original syntax determined by filetype, so this
is kinda a hack but worked for me:
au FileType tex autocmd User SneakLeave set syntax=tex
au FileType tex autocmd User SneakEnter set syntax=text
…On Sat, Jan 26, 2019 at 4:58 PM Justin M. Keyes ***@***.***> wrote:
sneak-events
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:
- #197 <#197>
- #202 <#202>
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#235 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGBkZmswv-SGjq8_dHDRxiVC9xZjOQqeks5vHN16gaJpZM4aUbHI>
.
|
Unfortunately this hack makes Sneak too slow. So I just disabled conceal
for now.
On Sat, Jan 26, 2019 at 7:07 PM Yasha Savelyev <[email protected]>
wrote:
… Awesome!
I don't know how to go to original syntax determined by filetype, so this
is kinda a hack but worked for me:
au FileType tex autocmd User SneakLeave set syntax=tex
au FileType tex autocmd User SneakEnter set syntax=text
On Sat, Jan 26, 2019 at 4:58 PM Justin M. Keyes ***@***.***>
wrote:
> sneak-events
>
> 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:
>
> - #197 <#197>
> - #202 <#202>
>
> 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.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#235 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AGBkZmswv-SGjq8_dHDRxiVC9xZjOQqeks5vHN16gaJpZM4aUbHI>
> .
>
|
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.
The text was updated successfully, but these errors were encountered: