Skip to content

Error detected while processing function <SNR>42_EnableAirlineColorNum[10]..<SNR>42_LoadCursorLineNrUpdates[6]..UpdateCursorLineNr: #18

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

Open
shibumi opened this issue Feb 27, 2017 · 3 comments
Labels

Comments

@shibumi
Copy link

shibumi commented Feb 27, 2017

Hey,
I run into a lot of errors when I do: EnableAirlineColornum

Error detected while processing function <SNR>42_EnableAirlineColorNum[10]..<SNR>42_LoadCursorLineNrUpdates[6]..UpdateCursorLineNr:
line   30:
E121: Undefined variable: g:colors_name
E15: Invalid expression: g:colors_name
@ntpeters
Copy link
Owner

Which colorscheme are you using? The variable g:colors_name should be defined by any colorscheme other than the default. If you aren't using the default, then this means the colorscheme you are using is malformed.

Either way, I do need to add a check for this.

@ntpeters ntpeters added the bug label Feb 27, 2017
@shibumi
Copy link
Author

shibumi commented Feb 27, 2017

I use the default vim-airline colourscheme..

@ntpeters
Copy link
Owner

ntpeters commented Feb 27, 2017

Ah, okay. Before looking into this issue I didn't realize the default theme doesn't set that variable.

Until I fix this, a temporary workaround would be to set that in your vimrc: let g:colors_name='default'

The scheme name is mainly used to ensure a refresh if the colorscheme is changed (and to ignore change events when changing to the same theme), so this should be sufficient for now.

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