Solve ubuntu vi problem 49/58549/1
authorbiancunkang <bian.cunkang@zte.com.cn>
Thu, 2 Aug 2018 03:19:42 +0000 (11:19 +0800)
committerbiancunkang <bian.cunkang@zte.com.cn>
Thu, 2 Aug 2018 03:19:42 +0000 (11:19 +0800)
Modify vimrc.tiny in Dockerfile

Change-Id: Ibcaea980f54e281b089a6a4622d60a68f34d67e0
Issue-ID: VFC-1006
Signed-off-by: biancunkang <bian.cunkang@zte.com.cn>
mgr/docker/Dockerfile

index b88a8a7..2325844 100644 (file)
@@ -9,6 +9,9 @@ ENV https_proxy $HTTPS_PROXY
 RUN echo "mysql-server mysql-server/root_password password root" | debconf-set-selections
 RUN echo "mysql-server mysql-server/root_password_again password root" | debconf-set-selections
 
+RUN sed -i "s|set compatible|set nocompatible|" /etc/vim/vimrc.tiny \ &
+    echo "set backspace=2" >> /etc/vim/vimrc.tiny
+
 RUN apt-get update && \
     apt-get install -y python-virtualenv && \
     apt-get install -y python-setuptools && \