-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Syntax highlighting may be disabled by "'redrawtime' exceeded" when re=1
#3583
Comments
I don't know if this issue can be avoided by changing the implementation, but I hope that if |
Yes, this has come up a few times. A FAQ entry seems appropriate. |
Do we wish to add this to the documentation ? I could help. |
@nidhi-singh02 yes, I'd like to add this to the FAQ section in https://github.com/fatih/vim-go/blob/master/doc/vim-go.txt. I would welcome a PR if you want to submit it. |
What did you do? (required: The issue will be closed when not provided)
vim main.go
:%s/ a/ a[/
What did you expect to happen?
vim and vim-go continues to work normally.
What happened instead?
"'redrawtime' exceeded, syntax highlighting disabled" is displayed and syntax highlighting is disabled.
This problem could be avoided by either of the following methods:
set re=1
toset re=0
orset re=2
in .vimrcProbably caused by #3397
MacOS users may run into this problem because vim defaults to
re=1
.Configuration (MUST fill this out):
vim-go version:
v1.28
vimrc
you used to reproduce:vimrc
Vim version (first three lines from
:version
):VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 18 2023 04:12:26)
Included patches: 1-3995, 4563, 4646, 4774, 4895, 4899, 4901, 4919, 213
Modified by [email protected]
Go version (
go version
):go version go1.21.1 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: