Solve ubuntu vi problem 51/58551/1
authorfujinhua <fu.jinhua@zte.com.cn>
Thu, 2 Aug 2018 03:37:38 +0000 (11:37 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Thu, 2 Aug 2018 03:37:38 +0000 (11:37 +0800)
Modify vimrc.tiny in Dockerfile

Change-Id: I30101e30c06d925d3c466fc10ac1c7537f8f5878
Issue-ID: VFC-1006
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
res/docker/Dockerfile

index 963051e..78ed192 100644 (file)
@@ -6,6 +6,9 @@ ARG HTTPS_PROXY=${HTTPS_PROXY}
 ENV http_proxy $HTTP_PROXY
 ENV https_proxy $HTTPS_PROXY
 
+RUN sed -i "s|set compatible|set nocompatible|" /etc/vim/vimrc.tiny \ &
+    echo "set backspace=2" >> /etc/vim/vimrc.tiny
+
 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