-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
no colour in vim in a Docker container when using contour #1244
Comments
Check if you added contour terminfo to the docker image |
This is true that terminfo is not inside docker image, its just raw image with installed vim |
just set TERM to xterm-256color then, it should work |
It works, Yaraslaut provided links in its answer in discussion and I set this variable to this value and it worked. |
This is great. |
Oops, sorry, sure. docker run -it -e TERM='screen-256color' debian:stable-slim bash
>> apt update && apt install -y vim
>> vim # Colorful this time |
Thanks, i am closing it then |
Discussed in #1240
Originally posted by mufasachan October 9, 2023
I edit files in running containers using Vim, primarily for prototyping a Dockerfile. I recently installed contour, and it's fantastic. However, when I edit files in my container with Vim, the colors are missing. I suspect I may have overlooked something in the configurations (either Docker or contour).
When I execute the following commands:
I don't see any colors when editing a file, for instance,
.bashrc
. The main screen also lacks colors. If I try to view highlight groups (:hi
), the list of all highlight groups appears, but it's entirely in black and white.Moreover, I've noticed that executing any command in the bash within the container works fine. For example:
I've added this post to the discussion as I don't believe the issue is related to Contour. I suspect my lack of understanding regarding terminal emulators and Docker is the cause. If you can identify or replicate this behavior and investigate why it doesn't work, I would be greatly appreciative 😁 .
I wonder why the container's bash seems to handle colors well, while Vim within the container fails to output colors.
The text was updated successfully, but these errors were encountered: