aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index da43972..0dcb58d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,8 @@
FROM testbed/vim:latest
+# set vim8 as default vim for the container image
+ENV DEFAULT_VIM=vim8
+
# install pip
ENV PACKAGES="\
bash \
@@ -17,5 +20,8 @@ RUN install_vim -tag v7.4.052 -name vim7 -build \
-tag v8.1.0519 -name vim8 -build \
-tag neovim:v0.3.5 -name neovim -build
+# alias vim to allow contextual load
+RUN echo 'alias vim="/sbin/run_vim $DEFAULT_VIM"' >> ~/.bashrc
+
# install vint
RUN pip install typing>=3.6.2 pathlib==1.0.1 enum34>=1.0.4 vim-vint==0.3.19