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
Does vim-illuminate require Vim 8.x? #23
Comments
For the time being I've worked around this in my
|
It should work for previous versions of Vim. The |
It seems to be a Vim bug in Vim7.4. I can't find any reference to it in online forums but the problem is that list splicing doesn't work when using a variable as the start. To reproduce, in Vim7.4 try this: :let col = 1
:let str = "abcd"
:echo str[col:] It will error but it shouldn't. If you ran I'll put out a check for the Vim version and default to an older way that I would get the current word under the cursor (although it is not as good, see #3). This will stop the error. Weird bug, I'd recommend using Vim8 if you can since it will match the word a lot better (again, see #3 for more info). |
Whatever you did works for me on Vim 7.4.x now. Thank you! |
@scottchiefbaker Can you try looking #29 and checking out the branch to see if highlighting works in Vim 7.4.x, thank you. |
I'm trying to run vim-illuminate on Vim 7.4x (CentOS 7) and I get this error:
If I move to Vim 8.x I don't have any problems with the same config. I don't see anything in the docs about requiring 8 so I wasn't sure how to proceed.
The text was updated successfully, but these errors were encountered: