-
Notifications
You must be signed in to change notification settings - Fork 40
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
Vim pencil hides/removes colorcolumn #75
Comments
This appears to be hard coded here: The logic seems to be that because there are extra characters added an the start of wrapped lines the color column does not actually correspond to that column in the actual text. We could easily add some sort of preference toggle to not disable this, but before we do that maybe you can give some input on when this would be useful. Perhaps only disabling it in soft wrap mode and letting it alone in hard wrap mode would make sense. Thoughts? |
@alerque if it doesn't align as expected, would it be feasible to figure out the correct offset, and then adjust |
As far as I know, no. The |
I ended up solving by using the Goyo callbacks to toggle vim-pencil - Stratus3D/dotfiles@7b56573 |
In my vimrc I have:
Without vim-pencil turned on I see columns 80 and 120 highlighted as I would expect:
But, after running
:call pencil#init()
the highlighting on the columns disappears:I can manually run
:set colorcolumn=80,120
to restore the columns, but I'd rather not have to do that every time. In my vimrc I have:But if I try setting colorcolum after
pencil#init()
it doesn't work:Any idea what I should do to ensure colorcolumns are always shown without manual intervention? Ideally it would be nice if vim-pencil did not affect them at all. Happy to contribute if there is something in vim-pencil that needs to be changed to accommodate this.
The text was updated successfully, but these errors were encountered: