Skip to content
This repository was archived by the owner on Sep 25, 2022. It is now read-only.
This repository was archived by the owner on Sep 25, 2022. It is now read-only.

Run the base image and vim does not display properly #11

@singlaive

Description

@singlaive

It might be weird why I run the base image jare/alpine-vim rather than the vim-bundle image. I do so in order to learn how to create my own vim docker image from scratch and attempted to use the base image as a starting point.

I only need add one line before ENTRYPOINT statment of alpine-vim-base/Dockerfile:
WORKDIR /workspace

Build this image after I cd into the repo:
docker build -t docker-vim alpine-vim-base

And I run it for editing:
docker run -it --rm -v pwd:/workspace docker-vim alpine-vim-base/Dockerfile

Surprisingly, vim does not render all content. You can see 1/3 of lines are blank:
image

And if I run :set nu to display line number, the problem becomes more visible, and you can not even scroll up to go to the begining of the file:
image

I must say this issue is intermittent, and one out of ten it might give me proper display. Please anyone can help me?
Environment: macOS Mojave 10.14.1
Docker:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions