summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorjjakob <jernej.jakob@gmail.com>2020-03-19 14:02:44 +0100
committerJernej Jakob <jernej.jakob@gmail.com>2020-03-20 10:52:48 +0100
commit9c9c1273bbd1c01374faa5d65af06954966c098b (patch)
tree67360287f63013e79759bfca0b24118254ccc46d /docker
parentad20b8d243b654d0f349032d085ecfd56aecab33 (diff)
downloadvyos-build-9c9c1273bbd1c01374faa5d65af06954966c098b.tar.gz
vyos-build-9c9c1273bbd1c01374faa5d65af06954966c098b.zip
T2144: docker: disable mouse in vim completely
With the previous config, the mouse still triggered selection. Unset both mouse and ttymouse.
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile5
1 files changed, 2 insertions, 3 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 26ef80b7..880e2945 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -391,9 +391,8 @@ RUN echo "$(opam env --root=/opt/opam --set-root)" >> /etc/skel/.bashrc
# Cleanup
RUN rm -rf /tmp/*
-# Do not enable visual mode on right click in vim
-# https://github.com/vim/vim/issues/1326
-RUN echo "set mouse-=a" >> /etc/vim/vimrc
+# Disable mouse in vim
+RUN echo -e "set mouse=\nset ttymouse=" > /etc/vim/vimrc.local
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]